This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x, y = map(int, input().split()) | |
count = 0 | |
day = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN'] | |
month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
for i in range(x-1): | |
count += month[i] | |
count += y-1 | |
print(day[count%7]) |
'코딩테스트 준비' 카테고리의 다른 글
백준 9095번 1, 2, 3 더하기 (0) | 2021.02.08 |
---|---|
백준 10828 스택 (0) | 2021.02.07 |
백준 4673번 셀프넘버 (0) | 2021.02.06 |
백준 1065번 한수 (0) | 2021.02.06 |
백준 2839번 설탕 배달 (0) | 2021.02.06 |