题解
2025-08-20 14:49:16
发布于:甘肃
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int year,month;cin>>year>>month;
if(year%100!=0&&year%40&&month2) cout<<29;
else if(year%4000&&month2) cout<<29;
else{
if(month<=7){
if(month%2!=0) cout<<31;
else if(month2) cout<<28;
else cout<<30;
}
if(month>=8){
if(month2) cout<<28;
else if(month%2==0) cout<<31;
else cout<<30;
}
}
return 0;
}
这里空空如也
有帮助,赞一个