[BOJ 11371] The Big Eye in the Sky
View as PDFThe Eye of Sauron is in the middle of Mordor. He needs to track the tricksy hobbitses as they trek across the land; to do so, the Eye at the top of the Tower must rotate so that it has a good view.</p>
The eye is at coordinates (0,0) facing due east. Given a coordinate in the first quadrant, output the number of degrees from the x-axis to rotate the Eye so that it faces the hobbits.
입력 형식
The input is a series of lines representing integer coordinates of the hobbitses as an x and y value. All (x, y) coordinates will be in the first quadrant. The coordinate (0,0) marks the end of input.
출력 형식
For each test case, output to a newline the number of degrees (rounded to the closest integer) to rotate the Eye. Note that each test case is rotating from the x-axis, not from the previous orientation of the Eye.
예제 입력
5 5
9 15
12 6
0 4
0 0
예제 출력
45
59
27
90
Comments