P5737 【深基7.例3】闰年展示(python3实现)
【深基7.例3】闰年展示 - 洛谷
"""
P5737 【深基7.例3】闰年展示(python3实现)
https://www.luogu.com.cn/problem/P5737
"""
ans=0
a,b=map(int,input().split() )
for i in range(a,b+1):
if i%400==0 or i%4==0 and i%100 !=0:
ans+=1
print(ans)
for i in range(a,b+1):
if i%400==0 or i%4==0 and i%100 !=0:
print(i,end=" ")
P1303 A*B Problem(python3实现)https://blog.csdn.net/dllglvzhenfeng/article/details/122710997
P
共有 0 条评论