結果

問題 No.938 賢人を探せ
ユーザー pluto77pluto77
提出日時 2019-12-20 14:24:00
言語 Python2
(2.7.18)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 6,592 KB
実行使用メモリ 10,908 KB
最終ジャッジ日時 2023-08-21 03:40:48
合計ジャッジ時間 2,403 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
10,820 KB
testcase_01 AC 11 ms
5,872 KB
testcase_02 AC 11 ms
5,928 KB
testcase_03 AC 11 ms
5,880 KB
testcase_04 AC 11 ms
5,848 KB
testcase_05 AC 11 ms
6,028 KB
testcase_06 AC 11 ms
6,064 KB
testcase_07 AC 11 ms
5,996 KB
testcase_08 AC 51 ms
8,488 KB
testcase_09 AC 52 ms
8,564 KB
testcase_10 AC 11 ms
6,028 KB
testcase_11 AC 58 ms
9,108 KB
testcase_12 AC 50 ms
8,600 KB
testcase_13 AC 51 ms
8,552 KB
testcase_14 AC 50 ms
8,532 KB
testcase_15 AC 49 ms
8,468 KB
testcase_16 AC 50 ms
8,544 KB
testcase_17 AC 50 ms
8,532 KB
testcase_18 AC 50 ms
8,688 KB
testcase_19 AC 49 ms
8,516 KB
testcase_20 AC 50 ms
8,596 KB
testcase_21 AC 49 ms
8,604 KB
testcase_22 AC 68 ms
10,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki938

n=int(raw_input())
s=set()
l=[]
for i  in range(n):
 a,b=map(str,raw_input().split())
 s.add(a)
 l.append(b)
for x in l:
 if x not in s:
  print(x)
  s.add(x)
  
0