Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142194 丁俊杰 08有几个闰年 Python3 Accepted 34 MS 3788 KB 319 2026-01-01 16:14:50

Tests(10/10):


Code:

a,b,c=input().split() #分割函数,以空格为间隔 a,b,c=int(a),int(b),int(c) t=0 #初始化计数器的值为0 #判断是否是闰年 if (a%4==0 and a%100!=0) or (a%400==0): t+=1 if (b%4==0 and b%100!=0) or (b%400==0): t+=1 if (c%4==0 and c%100!=0) or (c%400==0): t+=1 print(t)