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

Valentin Pimenov Question about output the angle. [3] // Problem 1328. Fireball 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.
Aleksey (BMSTU IU7) Re: Question about output the angle. [2] // Problem 1328. Fireball 18 Feb 2005 01:35
0.00<=Angle<360.0
Denis Koshman Re: Question about output the angle. [1] // Problem 1328. Fireball 19 Aug 2008 07:43
Rounded angle may probably become 360.00. Anyway, I had no protection against that and got AC.
Astekinane Re: Question about output the angle. // Problem 1328. Fireball 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