满级人类!!!
2025-05-21 19:26:30
发布于:四川
3阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m,x,y;
cin>>n>>m>>x>>y;
if(y == m){
cout<<"NA"<<endl;
}else{
cout<<x<<" "<<y+1<<endl;
}
if(x == n){
cout<<"NA"<<endl;
}else{
cout<<x+1<<" "<<y<<endl;
}
if(y == 1){
cout<<"NA"<<endl;
}else{
cout<<x<<" "<<y-1<<endl;
}
if(x == 1){
cout<<"NA"<<endl;
}else{
cout<<x-1<<" "<<y<<endl;
}
return 0;
}
全部评论 1
厉害!!!
2025-05-21 来自 四川
0
有帮助,赞一个