BC55 判断闰年
思路:
step1:输入年份;
step2:判断是否是闰年,并打印结果;
代码如下:
n = int(input())
if n%400 == 0 or (n%100 != 0 and n%4 == 0):
print('yes')
else:
print('no')
n = int(input())
if n%400 == 0 or (n%100 != 0 and n%4 == 0):
print('yes')
else:
print('no')