1 solutions

  • 0
    @ 2024-7-28 17:20:08
    #include<iostream>
    using namespace std;
    int main()
    {
        int n;
        cin>>n;
        if((n % 4 == 0 && n % 100 != 0) || (n / 100 == 0 || n % 400 == 0)){
            cout<<"Y"<<endl;
        }
        else cout<<"N"<<endl;
        return 0;
    }
    

    Information

    ID
    6733
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    6
    Tags
    (None)
    # Submissions
    225
    Accepted
    75
    Uploaded By