結果

問題 No.870 無敵囲い
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-05-17 23:28:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 300 ms
コード長 261 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 86,928 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-10-14 02:37:13
合計ジャッジ時間 3,870 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,416 KB
testcase_01 AC 72 ms
71,268 KB
testcase_02 AC 76 ms
71,116 KB
testcase_03 AC 74 ms
71,388 KB
testcase_04 AC 74 ms
71,260 KB
testcase_05 AC 73 ms
71,400 KB
testcase_06 AC 72 ms
71,260 KB
testcase_07 AC 72 ms
71,248 KB
testcase_08 AC 71 ms
71,156 KB
testcase_09 AC 72 ms
71,328 KB
testcase_10 AC 71 ms
70,968 KB
testcase_11 AC 72 ms
71,216 KB
testcase_12 AC 71 ms
71,416 KB
testcase_13 AC 72 ms
71,348 KB
testcase_14 AC 71 ms
71,344 KB
testcase_15 AC 72 ms
71,336 KB
testcase_16 AC 70 ms
71,352 KB
testcase_17 AC 71 ms
70,976 KB
testcase_18 AC 74 ms
71,360 KB
testcase_19 AC 71 ms
71,464 KB
testcase_20 AC 72 ms
71,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l = [[2,8],[3,9],[7,9]]
for i in range(n):
    x1,y1,x2,y2 = map(int,input().split())
    for j in range(3):
        if l[j] == [x1,y1]:
            l[j] = [x2,y2]
            
if l == [[5,8],[4,8],[6,8]]:
    print("YES")
else:
    print("NO")
0