結果

問題 No.1808 Fullgold Alchemist
ユーザー 👑 SPD_9X2
提出日時 2022-01-14 21:34:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 103,424 KB
最終ジャッジ日時 2024-11-20 08:07:02
合計ジャッジ時間 3,785 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())

A = list(map(int,input().split()))

ans = float("inf")

now = 0

for i in range(N):

    now += A[i]
    ans = min(ans , now // (M*(i+1)))

print (ans)
0