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