結果
問題 |
No.938 賢人を探せ
|
ユーザー |
|
提出日時 | 2020-11-22 00:58:35 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 230 ms |
コンパイル使用メモリ | 82,568 KB |
実行使用メモリ | 84,196 KB |
最終ジャッジ日時 | 2024-07-23 16:10:14 |
合計ジャッジ時間 | 23,443 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 TLE * 2 |
ソースコード
N = int(input()) M = {} name_list = [] for _ in range(N): a,b = map(str,input().split()) c = {a:0} M.update(c) if a not in name_list: name_list.append(a) if b not in name_list: name_list.append(b) M[a] += 1 for n in name_list: if n not in M: print(n)