結果

問題 No.870 無敵囲い
ユーザー kohei2019kohei2019
提出日時 2022-05-04 14:14:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 300 ms
コード長 345 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 71,256 KB
最終ジャッジ日時 2023-09-16 16:58:28
合計ジャッジ時間 2,562 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,120 KB
testcase_01 AC 66 ms
70,648 KB
testcase_02 AC 66 ms
71,152 KB
testcase_03 AC 67 ms
70,960 KB
testcase_04 AC 67 ms
71,132 KB
testcase_05 AC 72 ms
70,772 KB
testcase_06 AC 68 ms
71,204 KB
testcase_07 AC 67 ms
71,144 KB
testcase_08 AC 67 ms
70,600 KB
testcase_09 AC 66 ms
70,780 KB
testcase_10 AC 68 ms
70,960 KB
testcase_11 AC 65 ms
71,164 KB
testcase_12 AC 70 ms
71,204 KB
testcase_13 AC 65 ms
71,028 KB
testcase_14 AC 65 ms
71,124 KB
testcase_15 AC 64 ms
71,116 KB
testcase_16 AC 65 ms
71,176 KB
testcase_17 AC 65 ms
71,256 KB
testcase_18 AC 67 ms
71,020 KB
testcase_19 AC 65 ms
70,768 KB
testcase_20 AC 65 ms
71,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
koma = [(2,8),(3,9),(7,9)]
for i in range(N):
    x0,y0,x1,y1 = map(int,input().split())
    koma2 = []
    for j in range(3):
        if (x0,y0) == koma[j]:
            koma2.append((x1,y1))
        else:
            koma2.append(koma[j])
    koma = koma2
if koma == [(5,8),(4,8),(6,8)]:
    print('YES')
else:
    print('NO')
0