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 1655. Somali Pirates

I have WA6. Please anybody HelpME!
Posted by 107th 23 Dec 2008 15:13
PLEASE!!!!
And I have WA8.
Posted by Al.Cash 6 Feb 2009 01:52
Maybe it's because of accuracy?
Re: And I have WA8.
Posted by (Adevaratul) Radu Mazare 20 Sep 2019 14:55
(in case you are still alive) was it because of accuracy ?
Re: And I have WA8.
Posted by Alikhan Zimanov 10 Aug 2020 14:40
I was using doubles and got WA8 due to precision error, but then I changed all of the doubles to pair<long long, long long> (trying to represent them as rational fractions without any loss of accuracy) and got AC.

Edited by author 10.08.2020 14:42

Edited by author 10.08.2020 15:53