题解
2023-10-27 13:38:16
发布于:福建
1阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n,sum=0,t;
    cin>>n;
    t=n;
    while(sum!=5)
    {
        if(t%100!=0&&t%4==0||t%400==0)
        {
            cout<<t<<endl;
            sum++;
        }
        t++;
    }
    return 0;
}
这里空空如也

有帮助,赞一个