結果

問題 No.870 無敵囲い
ユーザー otsunekootsuneko
提出日時 2021-05-06 13:32:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 300 ms
コード長 342 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 86,712 KB
実行使用メモリ 71,216 KB
最終ジャッジ日時 2023-09-11 16:39:13
合計ジャッジ時間 2,807 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,012 KB
testcase_01 AC 72 ms
71,112 KB
testcase_02 AC 73 ms
70,980 KB
testcase_03 AC 70 ms
71,216 KB
testcase_04 AC 71 ms
71,040 KB
testcase_05 AC 73 ms
71,168 KB
testcase_06 AC 73 ms
70,956 KB
testcase_07 AC 72 ms
71,104 KB
testcase_08 AC 72 ms
70,868 KB
testcase_09 AC 72 ms
70,984 KB
testcase_10 AC 71 ms
71,012 KB
testcase_11 AC 71 ms
70,960 KB
testcase_12 AC 71 ms
71,200 KB
testcase_13 AC 70 ms
71,068 KB
testcase_14 AC 71 ms
71,168 KB
testcase_15 AC 72 ms
71,136 KB
testcase_16 AC 71 ms
70,980 KB
testcase_17 AC 72 ms
71,156 KB
testcase_18 AC 71 ms
71,176 KB
testcase_19 AC 70 ms
71,144 KB
testcase_20 AC 72 ms
70,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

koma = [[2,8],[3,9],[7,9]]
muteki = [[5,8],[4,8],[6,8]]

for i in range(N):
    x1,y1,x2,y2 = map(int,input().split())

    if [x1,y1] in koma:
        idx = koma.index([x1,y1])
        koma[idx] = [x2,y2]

for k,m in zip(koma,muteki):
    if k != m:
        print("NO")
        break
else:
    print("YES")
0