2 条题解

  • 1
    @ 2024-11-25 17:57:21

    #include//关注b站海绵经验包 using namespace std;

    int main() { int yar,monh; cin>>year>>month; if(month2) { if((year%40 && year%100!=0) || year%400==0) cout<<"29"; else cout<<"28"; } else { switch(month) { case 1:cout<<"31";break; case 3:cout<<"31";break; case 4:cout<<"30";break; case 5:cout<<"31";break; case 6:cout<<"30";break; case 7:cout<<"31";break; case 8:cout<<"31";break; case 9:cout<<"30";break; case 10:cout<<"31";reak; case 11:cout<<"30";break; case 12:cout<<"31";break; } } return 0; }

    信息

    ID
    115
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    (无)
    递交数
    158
    已通过
    35
    上传者