Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114048 | 汤奕硕 | 今年的第几天 | Python3 | Accepted | 35 MS | 3768 KB | 302 | 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)