結果
| 問題 | No.45 回転寿司 |
| ユーザー |
|
| 提出日時 | 2016-12-28 09:05:19 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 417µs | |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2026-10-08 16:06:38 |
| 合計ジャッジ時間 | 2,923 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
def sushi_max(V):
s_max2 = 0
s_max = V[0]
for i in range(1, len(V)):
if (s_max2 + V[i]) > s_max:
s_max, s_max2 = s_max2 + V[i], s_max
else:
s_max2 = s_max
return s_max
N = int(input())
sara = list(map(int, input().split()))
print(sushi_max(sara))