結果

問題 No.1808 Fullgold Alchemist
ユーザー V_MelvilleV_Melville
提出日時 2022-01-15 09:50:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 261 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 33,248 KB
最終ジャッジ日時 2024-05-01 05:48:44
合計ジャッジ時間 6,510 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,496 KB
testcase_01 AC 28 ms
10,496 KB
testcase_02 AC 28 ms
10,624 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 29 ms
10,624 KB
testcase_05 AC 186 ms
13,996 KB
testcase_06 AC 243 ms
26,428 KB
testcase_07 AC 244 ms
26,432 KB
testcase_08 AC 240 ms
32,672 KB
testcase_09 AC 255 ms
32,676 KB
testcase_10 AC 261 ms
33,248 KB
testcase_11 AC 256 ms
32,672 KB
testcase_12 AC 249 ms
28,548 KB
testcase_13 AC 246 ms
28,544 KB
testcase_14 AC 245 ms
28,428 KB
testcase_15 AC 248 ms
28,496 KB
testcase_16 AC 35 ms
11,136 KB
testcase_17 AC 29 ms
10,624 KB
testcase_18 AC 63 ms
13,312 KB
testcase_19 AC 33 ms
10,880 KB
testcase_20 AC 79 ms
14,936 KB
testcase_21 AC 48 ms
12,288 KB
testcase_22 AC 30 ms
10,752 KB
testcase_23 AC 43 ms
11,776 KB
testcase_24 AC 34 ms
11,136 KB
testcase_25 AC 35 ms
11,264 KB
testcase_26 AC 59 ms
14,368 KB
testcase_27 AC 70 ms
14,688 KB
testcase_28 AC 228 ms
30,836 KB
testcase_29 AC 93 ms
17,240 KB
testcase_30 AC 88 ms
16,580 KB
testcase_31 AC 208 ms
28,668 KB
testcase_32 AC 139 ms
21,520 KB
testcase_33 AC 178 ms
25,704 KB
testcase_34 AC 233 ms
30,520 KB
testcase_35 AC 168 ms
24,256 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