반응형
https://www.acmicpc.net/problem/1924
# @Author YoungMinKim
# baekjoon
import datetime
m,d = map(int,input().split())
now = datetime.datetime(2007,m,d)
dic={0:"MON",1:"TUE",2:"WED",3: "THU",4: "FRI",5: "SAT",6:"SUN"}
for i in dic.keys():
if now.weekday() == i:
print(dic[i])
else:
continue
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 1977 (0) | 2020.08.24 |
---|---|
baekjoon - python - 1934 (0) | 2020.08.24 |
baekjoon - python - 1712 (0) | 2020.08.21 |
baekjoon - python - 1550 (0) | 2020.08.21 |
baekjoon - python - 1546 (0) | 2020.08.21 |
댓글