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 1413. Mars Jumper

Why always WA on test #3?
Posted by AVY 30 Oct 2005 13:38
Can anyone help me? All my solutions get WA on this test. Maybe, i don't understand the statement properly?
Re: Why always WA on test #3?
Posted by Evgenius(FInf_TSU#1) 31 Oct 2005 19:03
for example, if digit = 9 you must add sqrt(2)/2 to X and to Y, but may be you add 1 to X and to Y, So your  solutions is Wrong, then test has follow digits: 1,3,7,9
Re: Why always WA on test #3?
Posted by Passarit 6 Jun 2006 20:08
At first , I got WA#3 too but now I got AC
This problem if you break when get num '5' , you will get WA.
I fix this by break when I got num '0' or end of line character so I got AC.

Edited by author 06.06.2006 20:09

Edited by author 06.06.2006 20:09
Extended
Posted by Alex Stoff 7 Jun 2006 19:25
I had WA#3 too.
I don't remember, but I think I had problems
with real types.
So, I make a constans sq=sqrt(2)/2 and then AC.