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

31392번 - Astronomy 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB1582100.000%

문제

Android Vasya attends his Astronomy classes. Today on the laboratory work he had to count out the obliquity angle of sun rays. Help Vasya do this using the following facts.

  • The Earth orbit is a circle with the center in the center of the Sun. The Earth evenly moves along it counter clockwise, if to watch at the plane of the Erath orbit from the North Pole. A complete circle is made for exactly 365 days.
  • The Earth is a full sphere, rotating round its axis counter clockwise, if to watch at it from the North Pole. The Earth axis of rotation digresses from the perpendicular to the plane of the Earth orbit for 23.439281 degrees.
  • The meredian where Vasya is located is the nearest meredian to the Earth orbit's center at each midday. The period from one midday to the next one lasts exactly one day, i.e. 24 hours. The moment of summer solstice falls at midday of 21 of June.
  • At each moment of time sun rays can be considered parallel to the segment which connects the Earth center with the Earth's orbit center.

입력

The first line contains a real number $l$ --- the latitude of the point of Vasya's being and an integer $n$ --- the number of tests ($l$ contains not more than two digits after the decimal point; $-89.99 \leq l \leq 89.99$; 1ドル \leq n \leq 8760$). Each of the next $n$ lines contains an integer $d$ --- the day of a month, the string $m$ --- a short name of a month, and an integer $h$ --- the hour. $m$ may take one of the following values: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec. $d$ lies within the range from 1ドル$ to the number of days in the month $m$. 0ドル \leq h \leq 23$. The calendar is the same as in the Gregorian style for the non-leap years.

출력

Output one line for every test containing the angle in degrees between the Sun rays and the plane, which is tangent to the Earth surface at the point of Vasya's being, at given day $h$ hours and 0 minutes. If at that moment the Sun is under horizon output 0.00. The answers should be output with absolute or relative precision at least 10ドル^{-6}$.

제한

예제 입력 1

56 3
17 nov 12
17 nov 22
7 jul 12

예제 출력 1

14.496810046
0.0000000000
56.491608912

예제 입력 2

-66.57 1
22 jun 12

예제 출력 2

0.0000000000

힌트

The soltice is the moment when Sun rays fall on the Earth parallel to the plane, which is perpendicular to the Earth orbit and goes through the Earth axis. The summer soltice is the one out of two such moments at which the North Pole is lighted.

출처

Contest > Open Cup > 2014/2015 Season > Stage 14: Grand Prix of East and West I번

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

출처

대학교 대회

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

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