結果
| 問題 |
No.2064 Smallest Sequence on Grid
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-07 16:31:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 390 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-22 21:36:30 |
| 合計ジャッジ時間 | 3,475 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 += grid[index[0]][index[1]+1]
index[1] += 1
else:
result += grid[index[0]+1][index[1]]
index[0] += 1
print(result)