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 1328. Fireball

Question about output the angle.
Posted by Valentin Pimenov 17 Feb 2005 13:47
>> Angle in degrees (with 2 digits after decimal point), that gives the desired direction of fireball. If there are several such angles your program should output the minimal one.

1. Could angle be negative?
2. If YES, then does angle should be minimal "BY MODULO" OR minimal "BY VALUE"?

Thanks.
Re: Question about output the angle.
Posted by Aleksey (BMSTU IU7) 18 Feb 2005 01:35
0.00<=Angle<360.0
Re: Question about output the angle.
Posted by Denis Koshman 19 Aug 2008 07:43
Rounded angle may probably become 360.00. Anyway, I had no protection against that and got AC.
Re: Question about output the angle.
Posted by Astekinane 8 Oct 2011 18:15
When I add "if (fi==0) fi=360;" in my code I got WA#2, until this moment I got WA#14.

Edited by author 08.10.2011 18:16