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 1436. Billboard

To all who have WA#6
Posted by ftc 22 Jul 2008 12:51
Try to check return values of trigonometric routines. For example, if you use atan2, make sure that if returned angle is negative you take an absolute value of it (not just add 2 * PI).

Good luck!
Re: To all who have WA#6
Posted by tyomitch 27 Feb 2013 14:15
Mine was failing WA6 due to integer overflow -- remember to convert the data to float early :)