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 1030. Titanic

stuPId
Posted by Samsonov Alex 13 Jul 2005 16:49
I used PI=3.14159265358 in my program and got WA5 many times. When I added a few digits to PI, I got AC!
Re: stuPId
Posted by Raziel Redstone 2 Dec 2005 20:57
That's cause the last digit should be 9 with the occuracy you use. ;-)
Re: stuPId
Posted by KAV 12 Feb 2006 13:50
To avoid such situation, write in the following way:
pi = 2 * acos( 0. );