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 1493. One Step from Happiness

what is wrong ?
Posted by dibrov.bor[SumySU] 14 Dec 2007 13:44
I have try to solve this problem in different ways in Java and on C++ but I still have WA1
there are impossible cases 999999 000000 so I don't check overflow or negative
I can't imagine what is problem, can somebody tell me what is wrong there ?

// edit
[code was deleted]
oh so silly mistake
thank you !

Edited by author 14.12.2007 19:46
Re: what is wrong ?
Posted by KIRILL(ArcSTUpid coder:) 14 Dec 2007 15:51
he-he)
Yes instead YES & No instead NO