結果
| 問題 |
No.205 マージして辞書順最小
|
| コンテスト | |
| ユーザー |
buriburi
|
| 提出日時 | 2019-09-24 05:51:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 377 bytes |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-19 04:56:43 |
| 合計ジャッジ時間 | 1,206 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 15 |
ソースコード
N = int(input())
strings = []
for x in range(N):
strings.append(input())
ans = ""
def cut(str):
return str[1:]
while ( all( x == "" for x in strings) ):
index = 0
min = strings[0]
for x in range(len(strings)):
if (min > x[index]):
min = x
index += 1
# yabai
ans.append(min[:1])
strings[index] = cut(min)
print(ans)
buriburi