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 1894. Non-Flying Weather

Some tests
Posted by Otrebus 6 Aug 2021 16:38
3 4
0 2000 1000 3000 0 3000
0 0 3000 0 3000 3000 0 3000
ans: 647.1067811865

5 6
0 2000 500 2500 1000 3000 1500 3000 0 3000
0 0 1500 0 3000 0 1500 0 3000 3000 0 3000
ans: 647.1067811865

3 4
0 0 4000 0 2000 4000
0 0 4000 0 4000 4000 0 4000
ans: 3517.7087639997

4 4
0 0 3000 0 3000 3000 0 3000
2000 2000 5000 2000 5000 5000 2000 5000
ans: 940

4 4
0 0 3000 0 3000 3000 0 3000
1000 1000 -2000 1000 -2000 -2000 1000 -2000
ans: 940

4 3
0 0 30000 0 30000 30000 0 30000
10000 40000 40000 10000 40000 40000
ans: 7011.0678118655

4 4
0 0 3000 0 3000 3000 0 3000
-1000 1000 5000 1000 5000 2000 -1000 2000
ans: 1940

4 4
0 0 3000 0 3000 3000 0 3000
-1000 2000 1000 -1000 2000 -1000 -1000 2000
ans: 647.1067811865

3 3
0 0 4000 2000 0 4000
3000 2000 7000 0 7000 4000
ans: 387.2135955000

Also, WA6 = integer overflow