1 solutions

  • 0
    @ 2026-5-1 17:18:55

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

    • 1

    Information

    ID
    1156
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    # Submissions
    133
    Accepted
    39
    Uploaded By