結果

問題 No.45 回転寿司
ユーザー mlihua09mlihua09
提出日時 2020-08-23 11:00:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 129 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 58,872 KB
最終ジャッジ日時 2024-04-23 17:30:15
合計ジャッジ時間 2,325 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,900 KB
testcase_01 AC 41 ms
56,848 KB
testcase_02 AC 39 ms
58,500 KB
testcase_03 AC 42 ms
57,912 KB
testcase_04 AC 36 ms
57,364 KB
testcase_05 AC 36 ms
52,760 KB
testcase_06 AC 37 ms
56,676 KB
testcase_07 AC 38 ms
57,472 KB
testcase_08 AC 35 ms
52,124 KB
testcase_09 AC 36 ms
57,596 KB
testcase_10 AC 35 ms
52,408 KB
testcase_11 AC 37 ms
52,012 KB
testcase_12 AC 36 ms
57,716 KB
testcase_13 AC 34 ms
52,380 KB
testcase_14 AC 35 ms
52,400 KB
testcase_15 AC 34 ms
53,496 KB
testcase_16 AC 34 ms
51,872 KB
testcase_17 AC 36 ms
52,232 KB
testcase_18 AC 34 ms
53,560 KB
testcase_19 AC 36 ms
58,256 KB
testcase_20 AC 34 ms
52,264 KB
testcase_21 AC 35 ms
52,904 KB
testcase_22 AC 33 ms
52,424 KB
testcase_23 AC 34 ms
52,020 KB
testcase_24 AC 33 ms
52,000 KB
testcase_25 AC 35 ms
53,492 KB
testcase_26 AC 34 ms
52,440 KB
testcase_27 AC 37 ms
58,124 KB
testcase_28 AC 37 ms
52,836 KB
testcase_29 AC 40 ms
58,872 KB
testcase_30 AC 41 ms
57,956 KB
testcase_31 AC 37 ms
52,448 KB
testcase_32 AC 37 ms
52,164 KB
testcase_33 AC 42 ms
58,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #




N = int(input())




dp = [0, 0]

for v in map(int, input().split()):
    
    dp = [max(dp), dp[0] + v]
    

print(max(dp))
0