|
|
back to boardhints 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 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 |
|
|