結果
| 問題 | No.45 回転寿司 |
| ユーザー |
|
| 提出日時 | 2020-08-23 11:00:38 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 31 ms / 5,000 ms |
| + 349µs | |
| コード長 | 129 bytes |
| 記録 | |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 80,384 KB |
| 実行使用メモリ | 60,288 KB |
| 最終ジャッジ日時 | 2026-09-18 20:57:51 |
| 合計ジャッジ時間 | 3,043 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
N = int(input())
dp = [0, 0]
for v in map(int, input().split()):
dp = [max(dp), dp[0] + v]
print(max(dp))