結果

問題 No.938 賢人を探せ
ユーザー syunsukesyunsuke
提出日時 2020-09-15 22:21:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 85,292 KB
最終ジャッジ日時 2023-08-21 03:47:51
合計ジャッジ時間 3,778 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
85,292 KB
testcase_01 AC 74 ms
71,372 KB
testcase_02 AC 74 ms
71,344 KB
testcase_03 AC 73 ms
71,256 KB
testcase_04 AC 72 ms
71,116 KB
testcase_05 AC 72 ms
71,368 KB
testcase_06 AC 72 ms
71,272 KB
testcase_07 AC 70 ms
71,324 KB
testcase_08 AC 110 ms
80,000 KB
testcase_09 AC 112 ms
81,140 KB
testcase_10 AC 74 ms
71,308 KB
testcase_11 AC 117 ms
81,628 KB
testcase_12 AC 117 ms
80,264 KB
testcase_13 AC 118 ms
80,328 KB
testcase_14 AC 118 ms
80,044 KB
testcase_15 AC 119 ms
80,564 KB
testcase_16 AC 117 ms
80,268 KB
testcase_17 AC 121 ms
80,444 KB
testcase_18 AC 118 ms
80,264 KB
testcase_19 AC 119 ms
80,228 KB
testcase_20 AC 117 ms
80,264 KB
testcase_21 AC 118 ms
80,080 KB
testcase_22 AC 126 ms
85,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[]
BAN={}
for i in range(N):
    a,b=input().split()
    A.append(b)
    BAN[a]=1
    
ans={}
for i in range(N):
    if A[i] not in BAN and A[i] not in ans:
        print(A[i])
        ans[A[i]]=1
        
0