ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1052. Rabbit Hunt

WA2.. don't use multitest
Posted by -XraY- 3 Dec 2010 01:36
I have understood why you could have some strange WA2.
my program:

while (scanf("%d", &n) >= 1) {
    ...


}
if I write
while (scanf("%d", &n) >= 1) {
     if (!n)
        break;
    ...


}
I'll get AC..(though n >= 2=))
they have some trash at the end of the file...
Re: WA2.. don't use multitest
Posted by Yular 11 Aug 2011 18:50
Me too...+1