시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 (추가 시간 없음) | 1024 MB | 175 | 134 | 110 | 75.862% |
Consider a simplified calendar system where each year is 12 months and each month is 30 days, i.e., each year is 360 days. This sure makes the math easy, or does it?
Given a date and what day of the week it is, determine what day of the week a second date is. The second date will be after (timewise) the first date.
There are two input lines. The first input line contains four integers:
The second input line provides the second date; it contains three integers (similar to the first three integers of the first input line). Again, the second date will be later than the first date (timewise).
Print an integer (between 1 and 7, inclusive) indicating what day of the week the second date is.
20 11 2021 7 29 11 2021
2
20 10 1999 5 15 4 2002
4