|시간 제한||메모리 제한||제출||정답||맞힌 사람||정답 비율|
|2 초||128 MB||5||5||5||100.000%|
You are estimating the threat level of quarantined zones that have been abandoned to the infection. One of the key variables in determining a zone's threat level is the EIT (Effective Infection Time). This information is essential for planning strike dates to reclaim quarantined zones. The EIT is calculated according to the following rules:
The number and order of months in a calendar year remains the same as the modern Gregorian calendar.
The first line will be an integer N, where 1 <= N <= 50 giving the number of zones. For each zone, a pair of lines of will be provided:
Output the EIT for each zone on its own line. The EIT must be rounded to the fourth digit after the decimal point. The ones-digit must always be printed even if it is a zero.
2 2 0009 11 0012 3 0010 10 0010