Run ID:114048

提交时间:2025-03-19 18:41:01

def is_leap(year): return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) year, month, day = map(int, input().split()) months_days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] total = sum(months_days[:month-1]) + day if is_leap(year) and month > 2: total += 1 print(total)