結果

問題 No.870 無敵囲い
ユーザー miya145592miya145592
提出日時 2023-05-02 00:12:59
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 339 bytes
コンパイル時間 1,528 ms
コンパイル使用メモリ 81,660 KB
実行使用メモリ 65,536 KB
最終ジャッジ日時 2024-04-30 21:38:27
合計ジャッジ時間 2,686 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,964 KB
testcase_01 AC 35 ms
52,092 KB
testcase_02 AC 33 ms
52,500 KB
testcase_03 AC 33 ms
52,268 KB
testcase_04 AC 33 ms
53,324 KB
testcase_05 AC 33 ms
53,776 KB
testcase_06 AC 33 ms
53,072 KB
testcase_07 AC 33 ms
52,752 KB
testcase_08 AC 33 ms
52,236 KB
testcase_09 AC 33 ms
52,992 KB
testcase_10 AC 33 ms
52,388 KB
testcase_11 AC 33 ms
53,556 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 33 ms
53,544 KB
testcase_16 AC 31 ms
52,472 KB
testcase_17 AC 33 ms
52,692 KB
testcase_18 AC 36 ms
52,272 KB
testcase_19 AC 35 ms
53,120 KB
testcase_20 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
xyxy = [list(map(int, input().split())) for _ in range(N)]
d = dict()
d[(2, 8)] = 'A'
d[(3, 9)] = 'B'
d[(7, 9)] = 'C'
for x1, y1, x2, y2 in xyxy:
    if (x1, y1) in d:
        d[(x2, y2)] = d[(x1, y1)]
        d[(x1, y1)] = ''
if d[(5, 8)]=='A' and d[(4, 8)]=='B' and d[(6, 8)]=='C':
    print("YES")
else:
    print("NO")
0