結果

問題 No.1808 Fullgold Alchemist
ユーザー lloyzlloyz
提出日時 2022-01-14 21:35:53
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 195 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 30,028 KB
最終ジャッジ日時 2023-08-12 18:05:16
合計ジャッジ時間 5,290 ms
ジャッジサーバーID
(参考情報)
judge2 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,864 KB
testcase_01 AC 15 ms
7,780 KB
testcase_02 AC 15 ms
7,884 KB
testcase_03 AC 15 ms
7,988 KB
testcase_04 AC 16 ms
7,788 KB
testcase_05 AC 150 ms
11,428 KB
testcase_06 AC 186 ms
20,412 KB
testcase_07 AC 188 ms
20,368 KB
testcase_08 AC 191 ms
30,028 KB
testcase_09 AC 192 ms
29,916 KB
testcase_10 AC 192 ms
29,904 KB
testcase_11 AC 192 ms
29,808 KB
testcase_12 AC 194 ms
27,912 KB
testcase_13 AC 191 ms
28,044 KB
testcase_14 AC 195 ms
27,944 KB
testcase_15 AC 190 ms
27,936 KB
testcase_16 AC 20 ms
8,764 KB
testcase_17 AC 14 ms
7,792 KB
testcase_18 AC 43 ms
10,924 KB
testcase_19 AC 17 ms
8,252 KB
testcase_20 AC 56 ms
12,712 KB
testcase_21 AC 30 ms
9,804 KB
testcase_22 AC 15 ms
7,944 KB
testcase_23 AC 27 ms
9,420 KB
testcase_24 AC 19 ms
8,536 KB
testcase_25 AC 21 ms
8,856 KB
testcase_26 AC 40 ms
11,228 KB
testcase_27 AC 49 ms
12,052 KB
testcase_28 AC 179 ms
28,168 KB
testcase_29 AC 70 ms
14,380 KB
testcase_30 AC 64 ms
13,760 KB
testcase_31 AC 159 ms
25,928 KB
testcase_32 AC 104 ms
18,964 KB
testcase_33 AC 136 ms
23,088 KB
testcase_34 AC 179 ms
27,708 KB
testcase_35 AC 129 ms
21,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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