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

Special case
Posted by Igor E. Tuphanov 2 Mar 2006 09:37
And what about the following case:
0 0 0 1
Or billboard's leg can't be on the road? If it can, we see:
ang(0) = 0;
lim[ang(x)] = pi/2 (x -> 0). So, there is no best angle.
Re: Special case
Posted by Igor E. Tuphanov 2 Mar 2006 11:23
Yeah... It seems to me, i should output pi in this case.
Re: Special case
Posted by Ivankov Dmitry 2 Mar 2006 11:57
Yes, answer is PI, like in sample #4
Re: Special case
Posted by Fyodor Menshikov 17 Jan 2007 05:17
Correct answer is PI/2 when x1=x2 and y1*y2=0. But there is no such test case awhile.