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

107th I have WA6. Please anybody HelpME! [3] // Problem 1655. Somali Pirates 23 Dec 2008 15:13
PLEASE!!!!
Al.Cash And I have WA8. [2] // Problem 1655. Somali Pirates 6 Feb 2009 01:52
Maybe it's because of accuracy?
(Adevaratul) Radu Mazare Re: And I have WA8. [1] // Problem 1655. Somali Pirates 20 Sep 2019 14:55
(in case you are still alive) was it because of accuracy ?
Alikhan Zimanov Re: And I have WA8. // Problem 1655. Somali Pirates 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