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 1205. By the Underground or by Foot?

Is the input wrong ???
Posted by Viorel Canja 16 Mar 2002 21:39
My program crashed . I changed the code that checked for end of
underground connections to check if only one ( instead of both ) of
the numbers is 0 and I got AC.

How can this happen ?
The problem clearly states that the underground connections end with
a PAIR of zeros.
Re: Is the input wrong ???
Posted by sssa88 16 Mar 2002 21:43
probably they expect that nobody would check both zeroes
hmmm ,this is a little unfair . . .
Posted by MadPsyentist/Sam 16 Mar 2002 22:20
> probably they expect that nobody would check both zeroes
Re: Is the input wrong ???
Posted by Alexander 16 Mar 2002 22:30
> My program crashed . I changed the code that checked for end of
> underground connections to check if only one ( instead of both )
of
> the numbers is 0 and I got AC.
>
> How can this happen ?
> The problem clearly states that the underground connections end
with
> a PAIR of zeros.

I understand why some programs crash when they don't find 2 zeros,
but I don't understand why my program with the same bug works 0.951
sec, and gets WA!!!