青鸟AK @ 2020-03-24 12:05:14
#include <bits/stdc++.h>
using namespace std;
int main()
{
int h,t,cnt=0;
cin>>h>>t;
for(register int i=h;i<=t;i++)
{
if((i%400==0||i%4==0)&&(i%100))
{
cnt++;
}
}
cout<<cnt<<endl;
for(register int i=h;i<=t;i++)
{
if((i%400==0||i%4==0)&&(i%100))
{
cout<<i<<' ';
}
}
return 0;
}
by cmaths @ 2020-03-24 12:23:26
by HyyypRtf06 @ 2020-03-24 12:27:17
@江户川·萝卜 我手残了一下嘛qvq(/kk
by HyyypRtf06 @ 2020-03-24 12:27:37
判闰年方法太NB了(鼓掌.gif)
by cmaths @ 2020-03-24 12:30:13
自己实现愿望
by 青鸟AK @ 2020-03-26 14:17:24
@COEC 这不算神贴呀