結果

問題 No.483 マッチ並べ
ユーザー ichibanshiboriichibanshibori
提出日時 2017-02-10 23:29:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 10,516 KB
実行使用メモリ 8,288 KB
最終ジャッジ日時 2023-08-28 12:25:32
合計ジャッジ時間 2,805 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,832 KB
testcase_01 AC 17 ms
8,132 KB
testcase_02 AC 16 ms
7,964 KB
testcase_03 AC 15 ms
7,944 KB
testcase_04 AC 15 ms
7,972 KB
testcase_05 AC 15 ms
7,952 KB
testcase_06 AC 16 ms
8,064 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,976 KB
testcase_09 AC 15 ms
7,792 KB
testcase_10 WA -
testcase_11 AC 16 ms
8,200 KB
testcase_12 AC 16 ms
8,112 KB
testcase_13 AC 16 ms
7,844 KB
testcase_14 AC 16 ms
7,796 KB
testcase_15 WA -
testcase_16 AC 15 ms
8,180 KB
testcase_17 AC 15 ms
8,092 KB
testcase_18 AC 15 ms
7,808 KB
testcase_19 WA -
testcase_20 AC 16 ms
8,180 KB
testcase_21 AC 15 ms
8,128 KB
testcase_22 AC 16 ms
8,180 KB
testcase_23 AC 15 ms
8,092 KB
testcase_24 AC 15 ms
8,076 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 16 ms
8,060 KB
testcase_28 AC 15 ms
8,204 KB
testcase_29 AC 16 ms
8,112 KB
testcase_30 AC 16 ms
7,796 KB
testcase_31 AC 16 ms
8,044 KB
testcase_32 AC 16 ms
8,272 KB
testcase_33 AC 16 ms
8,236 KB
testcase_34 AC 16 ms
8,192 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 16 ms
7,824 KB
testcase_40 AC 15 ms
8,080 KB
testcase_41 AC 16 ms
8,088 KB
testcase_42 AC 15 ms
8,120 KB
testcase_43 AC 16 ms
7,748 KB
testcase_44 AC 16 ms
7,792 KB
testcase_45 WA -
testcase_46 AC 16 ms
7,840 KB
testcase_47 AC 17 ms
7,792 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 17 ms
7,828 KB
testcase_52 WA -
testcase_53 AC 15 ms
7,920 KB
testcase_54 AC 16 ms
8,060 KB
testcase_55 AC 16 ms
8,240 KB
権限があれば一括ダウンロードができます

ソースコード

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