結果
| 問題 |
No.45 回転寿司
|
| ユーザー |
|
| 提出日時 | 2020-11-26 14:37:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 367 bytes |
| コンパイル時間 | 102 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-07-23 20:48:49 |
| 合計ジャッジ時間 | 12,947 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | OLE * 1 -- * 29 |
ソースコード
N = int(input())
V = list(map(int, input().split()))
result = V[0]
def get_best_combination(v, v_list):
print(v, v_list)
for i in range(len(v_list)):
tmp_result = get_best_combination(v+v_list[i],v_list[i+2:])
global result
if tmp_result > result:
result = tmp_result
return v
get_best_combination(0,V)
print(result)