結果
| 問題 | No.2064 Smallest Sequence on Grid |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-07 16:33:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-22 21:37:51 |
| 合計ジャッジ時間 | 3,095 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)