結果

問題 No.938 賢人を探せ
ユーザー convexineqconvexineq
提出日時 2020-12-19 20:42:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 80,276 KB
最終ジャッジ日時 2023-08-21 03:48:02
合計ジャッジ時間 3,875 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
80,276 KB
testcase_01 AC 75 ms
71,232 KB
testcase_02 AC 72 ms
71,228 KB
testcase_03 AC 73 ms
71,372 KB
testcase_04 AC 74 ms
71,332 KB
testcase_05 AC 72 ms
71,348 KB
testcase_06 AC 76 ms
71,448 KB
testcase_07 AC 75 ms
71,204 KB
testcase_08 AC 111 ms
78,156 KB
testcase_09 AC 114 ms
78,476 KB
testcase_10 AC 75 ms
71,220 KB
testcase_11 AC 116 ms
79,128 KB
testcase_12 AC 114 ms
78,316 KB
testcase_13 AC 118 ms
78,316 KB
testcase_14 AC 117 ms
78,336 KB
testcase_15 AC 115 ms
78,500 KB
testcase_16 AC 116 ms
78,416 KB
testcase_17 AC 118 ms
78,700 KB
testcase_18 AC 115 ms
78,408 KB
testcase_19 AC 116 ms
78,188 KB
testcase_20 AC 117 ms
78,404 KB
testcase_21 AC 115 ms
78,296 KB
testcase_22 AC 127 ms
80,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
bad = set()
good = []
for _ in range(n):
    a,b = input().split()
    bad.add(a)
    good.append(b)

for i in good:
    if i not in bad:
        print(i)
        bad.add(i)
0