結果

問題 No.938 賢人を探せ
ユーザー neterukunneterukun
提出日時 2019-12-01 00:08:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 79,592 KB
最終ジャッジ日時 2024-05-01 03:26:06
合計ジャッジ時間 2,443 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
79,588 KB
testcase_01 WA -
testcase_02 AC 35 ms
53,120 KB
testcase_03 WA -
testcase_04 AC 36 ms
52,548 KB
testcase_05 AC 36 ms
52,796 KB
testcase_06 AC 35 ms
52,392 KB
testcase_07 AC 37 ms
53,676 KB
testcase_08 AC 80 ms
79,172 KB
testcase_09 AC 78 ms
78,844 KB
testcase_10 AC 36 ms
51,952 KB
testcase_11 AC 80 ms
79,592 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 83 ms
79,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
info = [input().split() for i in range(n)]

set_ = set([])
for i in range(n):
    a, b = info[i]
    set_.add(a)

for i in range(n):
    a, b = info[i]
    if b not in set_:
        print(b)
0