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

hints
Posted by Rumter (3) 29 Nov 2008 18:23
If you get WA4 or WA5:

eps = 1e-6;
if (r1 + r2 == r3)
    print ((r1 - r4) * 2 + (r2 - r4) * 2);

If you get WA6:
WA: printf ("%.7lf", ans);
AC: printf ("%.3lf", ans);

if you get WA7 and etc your wrong in functions: asin, acos.
tests
Posted by Rumter (3) 29 Nov 2008 18:27
r1 r2 r3
r4
ans

10000 10000 10000
1
29996.536

30 70 40
2
136

4 5 1
1
8

2 2 4
2
0

5 5 8
1
14.227

30 32 15
10
25
47.076

5 5 6
3
5.760

5 5 6
6
0.000

5000 5000 8000
1
17996.205

25 35 30
2
83.245

1000 1000 2000
250
3000.000

234 34 240
1
504.433

1000 2000 1000
250
3500.000
Re: hints
Posted by Edric Mao 23 Oct 2011 13:58
thanks