题解 | #判断闰年#
判断闰年
http://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
n = int(input())
if (n % 4 == 0 and n % 100 != 0) or n % 400 == 0:
print("yes")
else:
print("no")
判断闰年
http://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
n = int(input())
if (n % 4 == 0 and n % 100 != 0) or n % 400 == 0:
print("yes")
else:
print("no")
相关推荐