bird_秒切橙题 @ 2020-05-27 20:07:11
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
long long x,y,s=0,a[1001];
cin>>x>>y;
long long i;
for(i=x;i<=y;i++)
{
if(i%4==0&&i%100!=0)
{
s+=1;
a[i]=i;
}
else if(i%100==0&&i%400==0)
{
s+=1;
a[i]=i;
}
else
{
continue;
}
}
cout<<s<<"\n";
for(i=x;i<=y;i++)
{
cout<<a[i]<<" ";
}
}
by k3v1n070828 @ 2020-05-27 20:15:16
@small_bird wyy举报了
by k3v1n070828 @ 2020-05-27 20:15:33
发个英文句点啥意思?
by critnos @ 2020-05-27 20:15:40
@small_bird 建议您先输入 1 10 试试
这个很容易就能查出错误吧,自己没运行就来求助似乎不是一种好行为
by bird_秒切橙题 @ 2020-05-27 20:16:23
AC了蟹蟹
by k3v1n070828 @ 2020-05-27 20:17:03
我想问D人为什么要偷偷摸摸的?光明正大的私信轰炸不香吗?
by k3v1n070828 @ 2020-05-27 20:18:09
@small_bird 解释一下那个被删除的:这篇文章可能存在人生攻击 帖子,怎么回事,把事情说明白
by liqingyang @ 2020-05-27 20:19:03
@M652 所以我们开始私信轰炸吧!
by critnos @ 2020-05-27 20:19:18
光明正大的私信轰炸(((
by k3v1n070828 @ 2020-05-27 20:20:54
@small_bird 已经在举报贴@过了,不要不当回事,把事情今天解释清楚,为什么说我人身攻击
by liqingyang @ 2020-05-27 20:25:47
@M652 有截图吗?没看见qwq,怎么轰炸你了?