8 solutions

  • 1
    @ 2025-11-15 9:50:50

    #include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b; if(a%40&&a%100!=0||a%4000) { c=29; } else { c=28; } if(b1||b3||b5||b7||b8||b10||b12) { cout<<31; } else if(b2) { cout<<c; } else { cout<<30; } return 0; }

    Information

    ID
    2575
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    153
    Accepted
    50
    Uploaded By