A7987
2025-04-05 19:54:54
发布于:浙江
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>c>>d>>a>>b;
if(b+1>d){
cout<<"NA"<<endl;
}else{
cout<<a<<" "<<b+1<<endl;
}
if(a+1>c){
cout<<"NA"<<endl;
}else{
cout<<a+1<<" "<<b<<endl;
}
if(b-1==0){
cout<<"NA"<<endl;
}else{
cout<<a<<" "<<b-1<<endl;
}
if(a-1==0){
cout<<"NA"<<endl;
}else{
cout<<a-1<<" "<<b<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个