結果

問題 No.938 賢人を探せ
ユーザー yansi819yansi819
提出日時 2024-05-11 20:42:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 78,536 KB
最終ジャッジ日時 2024-05-11 20:42:11
合計ジャッジ時間 3,053 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
78,536 KB
testcase_01 AC 34 ms
53,228 KB
testcase_02 AC 34 ms
52,884 KB
testcase_03 AC 32 ms
52,148 KB
testcase_04 AC 36 ms
52,404 KB
testcase_05 AC 32 ms
53,104 KB
testcase_06 AC 33 ms
52,908 KB
testcase_07 AC 33 ms
52,672 KB
testcase_08 AC 71 ms
77,124 KB
testcase_09 AC 72 ms
77,320 KB
testcase_10 AC 33 ms
52,484 KB
testcase_11 AC 75 ms
78,104 KB
testcase_12 AC 78 ms
77,540 KB
testcase_13 AC 84 ms
77,540 KB
testcase_14 AC 78 ms
77,308 KB
testcase_15 AC 80 ms
77,284 KB
testcase_16 AC 79 ms
77,112 KB
testcase_17 AC 77 ms
77,188 KB
testcase_18 AC 78 ms
77,480 KB
testcase_19 AC 79 ms
77,328 KB
testcase_20 AC 74 ms
77,064 KB
testcase_21 AC 75 ms
77,128 KB
testcase_22 AC 80 ms
78,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = set()
B = []
K = set()
for _ in range(N):
    a, b = map(str, input().split())
    A.add(a)
    B.append(b)

for b in B:
    if not b in A and not b in K:
        print(b)
        K.add(b)
0