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 1271. Sailing Directions

WA31
Posted by ftc 20 Jun 2008 16:00
I got Wrong Answer on 31-st test. Could someone tell me, what is the reason of this outcome? Or give me some testdata.
Re: WA31
Posted by ftc 21 Jun 2008 14:14
So, there are precision problems. It it will help someone, here is the test:
100000000 100000000
0 0 1 0 1 1
0 99999999
1
0 99999998 100000000 99999998 100000000 99999999

Answer is -1.

Edited by author 21.06.2008 14:14