結果

問題 No.1808 Fullgold Alchemist
ユーザー trineutrontrineutron
提出日時 2022-01-14 21:27:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 204 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 776 ms
コンパイル使用メモリ 10,452 KB
実行使用メモリ 29,924 KB
最終ジャッジ日時 2023-08-12 17:37:59
合計ジャッジ時間 5,278 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,796 KB
testcase_01 AC 15 ms
7,832 KB
testcase_02 AC 15 ms
7,988 KB
testcase_03 AC 14 ms
7,952 KB
testcase_04 AC 15 ms
7,772 KB
testcase_05 AC 155 ms
11,300 KB
testcase_06 AC 177 ms
20,412 KB
testcase_07 AC 182 ms
20,404 KB
testcase_08 AC 194 ms
29,780 KB
testcase_09 AC 191 ms
29,924 KB
testcase_10 AC 190 ms
29,780 KB
testcase_11 AC 189 ms
29,840 KB
testcase_12 AC 196 ms
28,032 KB
testcase_13 AC 196 ms
28,048 KB
testcase_14 AC 192 ms
27,848 KB
testcase_15 AC 204 ms
27,992 KB
testcase_16 AC 20 ms
8,568 KB
testcase_17 AC 15 ms
7,792 KB
testcase_18 AC 45 ms
10,892 KB
testcase_19 AC 18 ms
8,260 KB
testcase_20 AC 59 ms
12,812 KB
testcase_21 AC 31 ms
9,996 KB
testcase_22 AC 14 ms
7,884 KB
testcase_23 AC 26 ms
9,360 KB
testcase_24 AC 20 ms
8,620 KB
testcase_25 AC 21 ms
8,788 KB
testcase_26 AC 40 ms
11,232 KB
testcase_27 AC 49 ms
11,992 KB
testcase_28 AC 183 ms
28,248 KB
testcase_29 AC 67 ms
14,368 KB
testcase_30 AC 63 ms
13,692 KB
testcase_31 AC 165 ms
25,864 KB
testcase_32 AC 103 ms
18,768 KB
testcase_33 AC 138 ms
23,036 KB
testcase_34 AC 173 ms
27,772 KB
testcase_35 AC 132 ms
21,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
a = list(map(int, input().split()))
ans = a[0]
s = 0
for i in range(n):
    s += a[i]
    ans = min(ans, s // (i + 1) // m)
print(ans)
0