結果
問題 | No.2843 Birthday Present Struggle |
ユーザー |
![]() |
提出日時 | 2024-08-23 23:42:21 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 82,552 KB |
実行使用メモリ | 53,768 KB |
最終ジャッジ日時 | 2024-08-23 23:42:24 |
合計ジャッジ時間 | 3,220 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
N = int(input()) Ax,Ay = map(int, input().split()) Bx,By = map(int, input().split()) Cx,Cy = map(int, input().split()) ANS = [] if Cx>1: ANS.append([Cx-1,Cy]) if Cx<N: ANS.append([Cx+1,Cy]) if Cy>1: ANS.append([Cx,Cy-1]) if Cy<N: ANS.append([Cx,Cy+1]) print(len(ANS)) for ans in ANS: print(*ans)