题解++;
2024-02-16 16:03:48
发布于:江西
9阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,x,y;
cin>>n>>m>>x>>y;
if(y+1>m)
cout<<"NA"<<endl;
else
cout<<x<<" "<<y+1<<endl;
if(x+1>n)
cout<<"NA"<<endl;
else
cout<<x+1<<" "<<y<<endl;
if(y-1<1)
cout<<"NA"<<endl;
else
cout<<x<<" "<<y-1<<endl;
if(x-1<1)
cout<<"NA"<<endl;
else
cout<<x-1<<" "<<y<<endl;
return 0;
}
这里空空如也
有帮助,赞一个