結果
| 問題 | No.2064 Smallest Sequence on Grid |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-07 16:33:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 571 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 20,720 KB |
| 最終ジャッジ日時 | 2026-05-16 20:20:40 |
| 合計ジャッジ時間 | 9,749 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 29 |
ソースコード
_input = input().split('\n')
h,w = list(map(int,_input[0].split(' ')))
grid = list(map(lambda x: x.split(''),_input[1:]))
index = [0,0]
result = ''
for _ in range(h+w-1):
if grid[index[0]+1][index[1]]>grid[index[0]][index[1]+1]:
result = result + grid[index[0]][index[1]+1]
index[1] += 1
else:
result = result + grid[index[0]+1][index[1]]
index[0] += 1
print(result)