90分求助
查看原帖
90分求助
1277691
xsh0613楼主2025/1/20 09:21

995

#include<bits/stdc++.h>
using namespace std;
int main(){
	int m,d;
	cin>>m>>d;
	if(m==12&&d==31){
		m=1;
		d=1;
	}else if((m!=12&&d==31)||(m!=12&&d==30)||(m!=12&&d==28)){
		m++;
		d=1;
	}else{
		d++;
	}
	cout<<m<<" "<<d;
	return 0;
}

5!

2025/1/20 09:21
加载中...