求助帖!!!
查看原帖
求助帖!!!
1175736
2166776037yyds楼主2024/4/5 16:08
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c=0;
	cin>>a>>b;
	if(b==2)
	{
		if(b%100!=0&&b%4==0) cout<<29;
		else if(b%400==0) cout<<29;
		else cout<<28; 
	}
	else if(b<=7) {
		if(b%2==0) cout<<30;
		else cout<<31;
	}
	else if(b>7) {
		if(b%2==0) cout<<31;
		else cout<<30;
	}
	return 0;
}
	

佬们求助下o(╥﹏╥)o

2024/4/5 16:08
加载中...