結果
問題 |
No.45 回転寿司
|
ユーザー |
![]() |
提出日時 | 2019-07-01 17:57:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 5,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-17 23:47:44 |
合計ジャッジ時間 | 2,041 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 30 |
ソースコード
N = int(input()) V = list(map(int, input().split())) a = [] a.append(0) a.append(V[0]) for i in range(1,N): a.append(max(a[i-1]+V[i], a[i])) print(a[-1])