Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143444 丁俊杰 09闰年第n个月有多少天 Python3 Accepted 32 MS 3768 KB 153 2026-01-15 13:31:17

Tests(10/10):


Code:

a=[31,29,31,30,31,30,31,31,30,31,30,31] #存储闰年每个月份的天数 n=int(input()) if 1<=n<=12: print(a[n-1]) else: print("Invalid.")