結果

問題 No.1808 Fullgold Alchemist
ユーザー trineutrontrineutron
提出日時 2022-01-14 21:27:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 265 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 32,668 KB
最終ジャッジ日時 2024-04-30 12:45:15
合計ジャッジ時間 6,301 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 33 ms
10,624 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 197 ms
14,592 KB
testcase_06 AC 237 ms
23,188 KB
testcase_07 AC 240 ms
23,192 KB
testcase_08 AC 263 ms
32,660 KB
testcase_09 AC 250 ms
32,532 KB
testcase_10 AC 250 ms
32,668 KB
testcase_11 AC 249 ms
32,608 KB
testcase_12 AC 258 ms
28,536 KB
testcase_13 AC 261 ms
28,536 KB
testcase_14 AC 265 ms
28,672 KB
testcase_15 AC 261 ms
28,532 KB
testcase_16 AC 37 ms
11,136 KB
testcase_17 AC 31 ms
10,624 KB
testcase_18 AC 68 ms
13,312 KB
testcase_19 AC 34 ms
11,008 KB
testcase_20 AC 85 ms
14,928 KB
testcase_21 AC 50 ms
12,416 KB
testcase_22 AC 31 ms
10,624 KB
testcase_23 AC 45 ms
11,904 KB
testcase_24 AC 37 ms
11,136 KB
testcase_25 AC 39 ms
11,264 KB
testcase_26 AC 62 ms
13,724 KB
testcase_27 AC 74 ms
14,860 KB
testcase_28 AC 244 ms
30,704 KB
testcase_29 AC 99 ms
17,180 KB
testcase_30 AC 93 ms
16,572 KB
testcase_31 AC 219 ms
28,660 KB
testcase_32 AC 148 ms
21,644 KB
testcase_33 AC 191 ms
25,444 KB
testcase_34 AC 244 ms
30,516 KB
testcase_35 AC 174 ms
24,148 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