题解
2023-12-15 21:11:03
发布于:广东
31阅读
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\n";
else cout << x << ' ' << y+1 << endl;
if (x+1>n) cout << "NA\n";
else cout << x+1 << ' ' << y << endl;
if (y-1==0) cout << "NA\n";
else cout << x << ' ' << y-1 << endl;
if (x-1==0) cout << "NA\n";
else cout << x-1 << ' ' << y << endl;
return 0;
}
这里空空如也
有帮助,赞一个