結果

問題 No.45 回転寿司
ユーザー cm-arai
提出日時 2020-12-03 14:50:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 381 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,696 KB
最終ジャッジ日時 2024-09-14 00:11:39
合計ジャッジ時間 12,891 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 4
other TLE * 1 -- * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
V = list(map(int, input().split()))

result = V[0]

def get_best_combination(v, v_list):
    for i in range(len(v_list)):
        if i > 2:
            break
        tmp_result = get_best_combination(v+v_list[i],v_list[i+2:])
        global result
        result = tmp_result if tmp_result > result else result
    return v

get_best_combination(0,V)
print(result)
0