알고리즘 문제 풀기/BOJ
BOJ백준 1924 - 2007년
bug_maker
2019. 4. 3. 17:34
<https://www.acmicpc.net/problem/1924>
BOJ/백준 1924 - 2007년
x, y = map(int, input().split())month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]day = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']result = 0for i in range(0, x-1): result += month[i]result += yprint(day[result % 7])