結果
| 問題 | No.205 マージして辞書順最小 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-22 14:43:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 395 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 20,572 KB |
| 最終ジャッジ日時 | 2026-04-04 20:07:03 |
| 合計ジャッジ時間 | 5,147 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 3 |
| other | AC * 2 RE * 13 |
ソースコード
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[0] for w in words)
for i,w in enumerate(words):
if x == w[0]:
words[i].pop(0)
t += x
print(t)