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