60分求助
查看原帖
60分求助
1235710
Eternal_destiny楼主2024/7/3 18:41
#include<bits/stdc++.h>
using namespace std;
int main(){
    int y;
    bool o=false;
    cin>>y;
    if(y%4==0){
        if(y%4==0){
            if(y%100!=0){
                o=true;
            }
        }
        else if(y%400==0){
            if(y%3200!=0){
                o=true;
            }
        }
        else if(y%172800==0){
            o=true;
        }
    }
    if(o){
        cout<<"Yes";
    }
    else{
        cout<<"No";
    }
}

真的无语死了...

分数在这里~~~

2024/7/3 18:41
加载中...