94!
查看原帖
94!
1113507
HEROBRINEH楼主2024/7/12 21:04
#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if(b==1||b==3||b==5||b==7||b==8||b==10||b==12) cout<<31;
	else if(b==4||b==6||b==9||b==11) cout<<30;
	else if((a==2000||a%4!=0)&&b==2) cout<<28;
	else cout<<29;
	return 0;
}
2024/7/12 21:04
加载中...