結果
| 問題 | No.938 賢人を探せ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-06 11:57:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 25,680 KB |
| 最終ジャッジ日時 | 2024-12-23 05:06:44 |
| 合計ジャッジ時間 | 49,588 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 WA * 1 TLE * 15 |
ソースコード
n = int(input())
ans = []
bad = []
for a in range(n):
cheat, p = input().split()
if p not in ans and p not in bad:
ans.append(p)
if cheat in ans:
ans.remove(cheat)
else:
bad.append(cheat)
for a in ans:
print(a)