結果
| 問題 | No.205 マージして辞書順最小 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-22 14:54:21 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 364 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 21,284 KB |
| 実行使用メモリ | 20,612 KB |
| 最終ジャッジ日時 | 2026-08-28 01:36:44 |
| 合計ジャッジ時間 | 6,117 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 15 |
ソースコード
n = int(input())
length = 0
words = []
for _ in range(n):
s = input()
length += len(s)
words.append(list(s))
t = ""
for _ in range(length):
x = min(w for w in words)
for i,w in enumerate(words):
if x == w:
words[i].pop(0)
if len(words[i]) == 0:
del words[i]
break
t += x
print(t)