結果
問題 |
No.944 煎っぞ!
|
ユーザー |
|
提出日時 | 2022-03-13 22:20:58 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 462 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 82,532 KB |
実行使用メモリ | 99,200 KB |
最終ジャッジ日時 | 2024-09-19 05:58:27 |
合計ジャッジ時間 | 8,717 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 34 |
ソースコード
N = int(input()) a = list(map(int,input().split())) def calc(x): count = 0 now = 0 left = 0 while left < N: right = left while right < N and now + a[right] <= x: now += a[right] right += 1 if now < x: return 0 now = 0 count += 1 left = right return count ans = 0 Sum = 0 for i in a: Sum += i t = calc(Sum) if t > ans: ans = t print(ans)