Logo
(追記) (追記ここまで)

11371번 - The Big Eye in the Sky 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB19116112986.577%

문제

The 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.

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.

제한

예제 입력 1

5 5
9 15
12 6
0 4
0 0

예제 출력 1

45
59
27
90

힌트

출처

School > University of Virginia High School Programming Contest > UVa HSPC 2014 G번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /