/* CとAが斜めに隣接する場合 ....... ...C... ..A.... .....B. ....... ....... ###C### ..A#... .....B. ....... ....... ....... ..A.... ...C.B. ....... */ #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int inf=1<<30; const ll INF=1LL<<62; typedef pair P; typedef pair PP; const ll MOD=998244353; const int dy[]={0,1,0,-1}; const int dx[]={1,0,-1,0}; int main(){ int N; cin>>N; P A,B,C; cin>>A.first>>A.second; cin>>B.first>>B.second; cin>>C.first>>C.second; vector

ans; for(int k=0;k<4;k++){ int nx=C.second+dx[k],ny=C.first+dy[k]; if(1<=nx && nx<=N && 1<=ny && ny<=N){ ans.push_back({ny,nx}); } } cout<