結果

問題 No.938 賢人を探せ
ユーザー NoviNovi
提出日時 2019-12-01 20:45:30
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 273 bytes
コンパイル時間 730 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 79,432 KB
最終ジャッジ日時 2023-08-21 03:31:52
合計ジャッジ時間 16,572 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 72 ms
71,188 KB
testcase_02 AC 71 ms
71,452 KB
testcase_03 AC 72 ms
71,096 KB
testcase_04 AC 73 ms
71,432 KB
testcase_05 AC 74 ms
71,100 KB
testcase_06 AC 73 ms
71,112 KB
testcase_07 AC 73 ms
71,356 KB
testcase_08 AC 382 ms
78,148 KB
testcase_09 AC 426 ms
78,328 KB
testcase_10 AC 72 ms
71,140 KB
testcase_11 AC 985 ms
78,780 KB
testcase_12 AC 579 ms
78,276 KB
testcase_13 AC 581 ms
78,308 KB
testcase_14 AC 588 ms
78,096 KB
testcase_15 AC 555 ms
78,256 KB
testcase_16 AC 565 ms
78,264 KB
testcase_17 AC 586 ms
78,148 KB
testcase_18 AC 560 ms
78,068 KB
testcase_19 AC 574 ms
78,168 KB
testcase_20 AC 549 ms
78,216 KB
testcase_21 AC 601 ms
78,272 KB
testcase_22 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
fir=[]
sec=[]
for i in range(n):
    q,r=map(str,input().split())
    fir.append(q)
    sec.append(r)
ans=[]
for i in range(n):
    if sec[i] not in fir:
        if sec[i] not in ans:
            ans.append(sec[i])
for i in range(len(ans)):
    print(ans[i])
0