6
2025-05-21 19:28:16
发布于:四川
0阅读
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;
}
这里空空如也
有帮助,赞一个