結果

問題 No.1808 Fullgold Alchemist
ユーザー MasKoaTSMasKoaTS
提出日時 2021-10-03 16:59:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 233 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 32,404 KB
最終ジャッジ日時 2024-04-08 14:59:53
合計ジャッジ時間 5,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 30 ms
9,984 KB
testcase_02 AC 29 ms
9,984 KB
testcase_03 AC 29 ms
9,984 KB
testcase_04 AC 29 ms
9,984 KB
testcase_05 AC 173 ms
14,176 KB
testcase_06 AC 216 ms
27,028 KB
testcase_07 AC 215 ms
27,028 KB
testcase_08 AC 219 ms
32,404 KB
testcase_09 AC 230 ms
32,404 KB
testcase_10 AC 233 ms
32,404 KB
testcase_11 AC 230 ms
31,988 KB
testcase_12 AC 222 ms
29,956 KB
testcase_13 AC 220 ms
29,948 KB
testcase_14 AC 220 ms
30,068 KB
testcase_15 AC 222 ms
29,952 KB
testcase_16 AC 34 ms
10,624 KB
testcase_17 AC 29 ms
9,984 KB
testcase_18 AC 60 ms
13,824 KB
testcase_19 AC 32 ms
10,240 KB
testcase_20 AC 73 ms
14,948 KB
testcase_21 AC 46 ms
11,776 KB
testcase_22 AC 28 ms
9,984 KB
testcase_23 AC 41 ms
11,264 KB
testcase_24 AC 33 ms
10,496 KB
testcase_25 AC 35 ms
10,624 KB
testcase_26 AC 56 ms
13,688 KB
testcase_27 AC 65 ms
14,196 KB
testcase_28 AC 206 ms
30,156 KB
testcase_29 AC 84 ms
16,640 KB
testcase_30 AC 81 ms
15,904 KB
testcase_31 AC 188 ms
27,988 KB
testcase_32 AC 126 ms
20,964 KB
testcase_33 AC 160 ms
24,904 KB
testcase_34 AC 205 ms
29,844 KB
testcase_35 AC 149 ms
23,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

n,m = map(int,input().split())
a = list(map(int,input().split()))
s = list(itertools.accumulate(a))

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

print(ans)
0