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 1114. Boxes

The result for A=0 and B=0!!!
Posted by VladG 30 Oct 2002 12:53
In the question, there is not defined what should be the result for
the case of A=0 and B=0.
I initially suppose that the result is 0 and got WA all the time,
trying desperately to find an error in other parts of the program.
When I already decided that I give a last try and then leave this
program, I tried the result 1 for this case and surprizingly my
program was Accepted.

This case should be described in the question it self!!!
Re: The result for A=0 and B=0!!!
Posted by TheBeet 15 May 2004 12:29
The result for A=0 and B=0 is '1'.

It is right.

It just like you put nothing into the box.