結果
| 問題 | No.45 回転寿司 |
| ユーザー |
|
| 提出日時 | 2023-12-12 23:28:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 139 bytes |
| 記録 | |
| コンパイル時間 | 491 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-14 01:08:23 |
| 合計ジャッジ時間 | 5,307 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 6 WA * 24 |
ソースコード
N=int(input())
V=list(map(int,input().split()))
A=[0 for i in range(N)]
for i in range(1,N):
A[i]=max(A[i-1],A[i-2]+V[i])
print(A[N-1])