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 1256. Cemetery Guard

To admins: My AC solution fails on some tests
Posted by hedrok 28 Jul 2008 23:00
To admins:
i think this test should be added (or any other where r3 = 0):
11 11 0
1
right answer: 20.000

i've found out that i am dividing by r3, but don't check whether r3 is zero.


Not to admins:

While solving i was short of normal tests (not special cases), so here are some:
234 34 240
1
answer: 504.433
25 35 30
2
answer: 83.245

i used two nested modified a little binary searches.

Edited by author 28.07.2008 23:01