結果

問題 No.938 賢人を探せ
ユーザー _matumo__matumo_
提出日時 2020-12-27 16:49:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 677 ms
コンパイル使用メモリ 10,476 KB
実行使用メモリ 16,424 KB
最終ジャッジ日時 2023-08-21 03:48:05
合計ジャッジ時間 2,347 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
16,392 KB
testcase_01 AC 15 ms
7,904 KB
testcase_02 AC 15 ms
7,816 KB
testcase_03 AC 15 ms
7,956 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 15 ms
7,856 KB
testcase_06 AC 15 ms
7,808 KB
testcase_07 AC 15 ms
7,844 KB
testcase_08 AC 58 ms
13,580 KB
testcase_09 AC 59 ms
13,760 KB
testcase_10 AC 15 ms
7,848 KB
testcase_11 AC 70 ms
16,360 KB
testcase_12 AC 57 ms
13,388 KB
testcase_13 AC 58 ms
13,340 KB
testcase_14 AC 56 ms
13,324 KB
testcase_15 AC 57 ms
13,392 KB
testcase_16 AC 57 ms
13,260 KB
testcase_17 AC 57 ms
13,408 KB
testcase_18 AC 58 ms
13,596 KB
testcase_19 AC 57 ms
13,308 KB
testcase_20 AC 57 ms
13,316 KB
testcase_21 AC 56 ms
13,364 KB
testcase_22 AC 82 ms
16,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
p=[input().split() for _ in range(N)]
s=set(a[0] for a in p)
for a in p:
	b=a[1]
	if b in s:	continue
	s.add(b)
	print(b)
0