結果

問題 No.1808 Fullgold Alchemist
ユーザー lllllll88938494
提出日時 2022-01-17 20:51:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 103,424 KB
最終ジャッジ日時 2024-11-23 13:00:00
合計ジャッジ時間 4,255 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m= map(int,input().split())
ns= list(map(int,input().split()))

cnt=0
ans=10**12

for i in range(n):
    cnt+=ns[i]
    ans=min(ans,cnt//(m*(i+1)))
    
print(ans)
    
0