結果
| 問題 |
No.2064 Smallest Sequence on Grid
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-07 16:30:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 241 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-22 21:34:04 |
| 合計ジャッジ時間 | 5,024 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 29 |
ソースコード
_input = input().split('\n')
h,w = _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