結果

問題 No.483 マッチ並べ
ユーザー ichibanshibori
提出日時 2017-02-10 23:29:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-29 11:16:34
合計ジャッジ時間 3,395 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 38 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

rc_dic = {}

for _ in range(n):
    r0, c0, r1, c1 = tuple(int(x) for x in input().split())

    if (r0, c0) not in rc_dic:
        rc_dic[(r0, c0)] = True
    elif (r1, c1) not in rc_dic:
        rc_dic[(r1, c1)] = True
    else:
        print("NO")
        exit()

print("YES")
0