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 2008. Swifty

WA#32
Posted by rydah 11 Nov 2013 21:34
AC'ed authors, how could you fix this?
Re: WA#32
Try to do all calculations in integer numbers
Re: WA#32
Posted by rydah 12 Nov 2013 21:45
I even replaced all the doubles with integers. But the result is the same.
Re: WA#32
In my formula, overflow is possible even in long long, if computed straightforwardly. So, check that in your algo no overflow occurs.