|
|
In my solution, it was a bug with precision. So I fixed it, by using int instead of double, as much as it was possible Please give some tests. Hi Nick, Sorry, don't know what is the #2. Here are all my tests (all 2D, all with plane speed == 1. However, covered main different cases): -3 0 0 4 2 0 1 res: 4.4220072 -3 0 0 6 4 0 1 res: 5.4139598 0 -3 0 4 6 0 1 res: 5.4139598 0 -3 0 4 0 0 1 res: 2.5949700 -3 0 0 4 0 0 1 res: 4.9511633 3 0 0 4 0 0 1 res: 1.0000000 Edited by author 13.08.2014 06:15 Что означает Problem locked? Problem will be unlocked in 5 minutes. Sorry. |
|
|