結果

問題 No.1808 Fullgold Alchemist
ユーザー irumo8202irumo8202
提出日時 2022-01-14 22:08:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 214 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 718 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 29,928 KB
最終ジャッジ日時 2023-08-12 19:56:21
合計ジャッジ時間 6,382 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,784 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 16 ms
7,768 KB
testcase_03 AC 15 ms
7,764 KB
testcase_04 AC 15 ms
7,856 KB
testcase_05 AC 165 ms
11,436 KB
testcase_06 AC 203 ms
23,684 KB
testcase_07 AC 194 ms
23,828 KB
testcase_08 AC 214 ms
29,928 KB
testcase_09 AC 205 ms
29,788 KB
testcase_10 AC 214 ms
29,836 KB
testcase_11 AC 203 ms
29,844 KB
testcase_12 AC 210 ms
27,856 KB
testcase_13 AC 213 ms
27,896 KB
testcase_14 AC 207 ms
27,948 KB
testcase_15 AC 214 ms
28,052 KB
testcase_16 AC 21 ms
8,612 KB
testcase_17 AC 15 ms
7,836 KB
testcase_18 AC 45 ms
11,496 KB
testcase_19 AC 18 ms
8,220 KB
testcase_20 AC 58 ms
12,688 KB
testcase_21 AC 32 ms
10,232 KB
testcase_22 AC 15 ms
7,824 KB
testcase_23 AC 27 ms
9,320 KB
testcase_24 AC 20 ms
8,408 KB
testcase_25 AC 21 ms
8,680 KB
testcase_26 AC 42 ms
11,352 KB
testcase_27 AC 50 ms
12,444 KB
testcase_28 AC 195 ms
28,168 KB
testcase_29 AC 72 ms
14,360 KB
testcase_30 AC 66 ms
13,752 KB
testcase_31 AC 176 ms
25,900 KB
testcase_32 AC 111 ms
18,828 KB
testcase_33 AC 143 ms
22,896 KB
testcase_34 AC 192 ms
27,684 KB
testcase_35 AC 135 ms
21,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

accA = [0]
val = 1 << 60
for i in range(N):
    accA.append(accA[-1] + A[i])
    val = min(val, accA[-1] // (i + 1))

print(val // M)
0