mspw @ 2021-11-19 19:46:19
本地可以,扔到洛谷上编译失败,什么原因也没提
#include<bits/stdc++.h>
using namespace std;
queue<int> y;
bool isrn(int n)
{
if(n%4==0)
{
if(n%400!=0) return 0;
return 1;
}
return 0;
}
int main()
{
int m,n;
cin>>m>>n;
while(!isrn(m)) m++;
for(int i=m;i<=n;i+=4)
y.push(i);
cout<<y.size()<<endl;
while(!y.empty())
{
cout<<y.front()<<' ';
y.pop();
}
return 0;
}
by WIGYF @ 2021-11-19 19:47:24
luogu爆了
by Meng142857 @ 2021-11-19 19:47:36
日爆,正常现象
by pythoner713 @ 2021-11-19 19:47:40
现在洛谷出了些问题
by aleph_blanc @ 2021-11-19 19:48:07
luogu 炸了,交个 A+B 都爆
by E1_de5truct0r @ 2021-11-19 19:50:33
例2 求证 luogu 日爆。
证:
by FanSizhe127 @ 2021-12-16 13:21:22
your rt:40