結果

問題 No.938 賢人を探せ
ユーザー 👑 KazunKazun
提出日時 2020-05-31 19:15:03
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 199 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 77,952 KB
最終ジャッジ日時 2024-04-29 07:54:25
合計ジャッジ時間 19,862 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 41 ms
51,968 KB
testcase_02 AC 41 ms
51,840 KB
testcase_03 AC 40 ms
51,456 KB
testcase_04 AC 41 ms
51,840 KB
testcase_05 AC 40 ms
51,328 KB
testcase_06 AC 40 ms
51,712 KB
testcase_07 AC 41 ms
51,840 KB
testcase_08 AC 811 ms
77,056 KB
testcase_09 AC 631 ms
77,056 KB
testcase_10 AC 40 ms
51,456 KB
testcase_11 AC 1,886 ms
77,696 KB
testcase_12 AC 852 ms
76,928 KB
testcase_13 AC 854 ms
76,928 KB
testcase_14 AC 848 ms
77,056 KB
testcase_15 AC 844 ms
76,928 KB
testcase_16 AC 839 ms
77,056 KB
testcase_17 AC 860 ms
76,928 KB
testcase_18 AC 854 ms
77,184 KB
testcase_19 AC 840 ms
77,056 KB
testcase_20 AC 837 ms
76,928 KB
testcase_21 AC 852 ms
77,056 KB
testcase_22 AC 1,816 ms
77,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[]
B=[]

for i in range(N):
    a,b=input().split()
    A.append(a)

    if b not in B:
        B.append(b)

for a in A:
    if a in B:
        B.remove(a)

for b in B:
    print(b)
0