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