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

Problem 1052 "Rabbit Hunt" has been rejudged (+)
Posted by Sandro (USU) 12 Dec 2011 18:36
Some new tests were added. 234 authors lost AC. Maybe we'll add more tests soon.
Re: Problem 1052 "Rabbit Hunt" has been rejudged (+)
Posted by Sandro (USU) 14 Dec 2011 02:18
Some more tests were added. 200 authors lost AC.

Edited by author 14.12.2011 23:32
Re: Problem 1052 "Rabbit Hunt" has been rejudged (+)
Posted by FreezingCool 14 Dec 2011 04:01
I think there is a problem here.

My pascal solution has failed and WA 14 now, and it was accepted before.
And my C++ solution is still AC and I have recently retyped the same Pascal solution that failed, into C++, and both codes are exactly the same, except one is C++ and the other one is Pascal. What could be the problem?
Re: Problem 1052 "Rabbit Hunt" has been rejudged (+)
Posted by Sandro (USU) 14 Dec 2011 14:21
Try simple test:

2
0 0
1 1
Re: Problem 1052 "Rabbit Hunt" has been rejudged (+)
As I see from the problem statement, this test is incorrect =)
Re: Problem 1052 "Rabbit Hunt" has been rejudged
Posted by xerxe 15 Dec 2011 17:43
The answer to this test is 2, which my program correctly gives. I received WA12.

Unless the geometric formula has changed in 5 years, then the new tests could be with boundary conditions.

Thank you for taking the time to answer.
Re: Problem 1052 "Rabbit Hunt" has been rejudged (+)
Posted by Sandro (USU) 15 Dec 2011 21:58
You are right, this test is incorrect. :) And there is no such test in the test set. But FreezingCool's Pascal and C++ solutions give different answers on this test.
Re: Problem 1052 "Rabbit Hunt" has been rejudged (+)
Posted by wesson 3 Nov 2013 14:55
I find out, that test 14 requires high accuracy of comparsion of two double(float) values. I used e=0.000000001 and i got AC.
Re: Problem 1052 "Rabbit Hunt" has been rejudged (+)
Do calculations in integer numbers - and won't have troubles with precision.