12 条题解

  • 0
    @ 2024-1-12 13:51:14

    #include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(b1||b3||b5||b7||b8||b10||b11) { cout<<31; } if(b4||b6||b9||b==12) { cout<<30; } else {

    if(a%400==0&&a%100!=0||a%4==0&&a%100!=0)
    {
    	cout<<29;
    }
    
    else
    {
    	cout<<28;
    }
    

    } return 0; } 哪里出问题了啊,帮我看看呗

    信息

    ID
    38
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    159
    已通过
    65
    上传者