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;
    }
    
    • 1

    Information

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