백준 1924
처음 푼 풀이 if elif else로 무식하게 조건을 걸었다 m, d = map(int, input().split()) def day_cal(total_date): tmp = total_date % 7 if tmp == 1: return 'MON' elif tmp == 2: return 'TUE' elif tmp == 3: return 'WED' elif tmp == 4: return 'THU' elif tmp == 5: return 'FRI' elif tmp == 6: return 'SAT' else: return 'SUN' day_list = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30] total_date = 0 + d for i in range(m): to..
2023. 9. 25.