| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 15 | 8 | 2 | 100.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 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}$.
56 3 17 nov 12 17 nov 22 7 jul 12
14.496810046 0.0000000000 56.491608912
-66.57 1 22 jun 12
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.