题解 | #判断闰年#
判断闰年
https://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
两行搞定!
a = int(input()) print("yes" if a % 4 == 0 and (a % 100 != 0 or a % 1000 == 0) else "no")
判断闰年
https://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
两行搞定!
a = int(input()) print("yes" if a % 4 == 0 and (a % 100 != 0 or a % 1000 == 0) else "no")
相关推荐