結果

問題 No.1808 Fullgold Alchemist
ユーザー irumo8202irumo8202
提出日時 2022-01-14 22:08:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 257 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 33,380 KB
最終ジャッジ日時 2024-04-30 15:00:18
合計ジャッジ時間 5,834 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,624 KB
testcase_01 AC 27 ms
10,624 KB
testcase_02 AC 26 ms
10,624 KB
testcase_03 AC 27 ms
10,624 KB
testcase_04 AC 25 ms
10,624 KB
testcase_05 AC 178 ms
14,720 KB
testcase_06 AC 235 ms
27,656 KB
testcase_07 AC 249 ms
27,464 KB
testcase_08 AC 236 ms
33,212 KB
testcase_09 AC 232 ms
33,380 KB
testcase_10 AC 234 ms
33,256 KB
testcase_11 AC 257 ms
32,660 KB
testcase_12 AC 242 ms
28,536 KB
testcase_13 AC 239 ms
28,408 KB
testcase_14 AC 247 ms
29,052 KB
testcase_15 AC 243 ms
28,412 KB
testcase_16 AC 30 ms
11,136 KB
testcase_17 AC 25 ms
10,752 KB
testcase_18 AC 57 ms
13,440 KB
testcase_19 AC 27 ms
10,880 KB
testcase_20 AC 73 ms
14,972 KB
testcase_21 AC 46 ms
12,376 KB
testcase_22 AC 26 ms
10,752 KB
testcase_23 AC 41 ms
11,776 KB
testcase_24 AC 31 ms
11,136 KB
testcase_25 AC 32 ms
11,264 KB
testcase_26 AC 54 ms
14,236 KB
testcase_27 AC 66 ms
14,968 KB
testcase_28 AC 240 ms
30,832 KB
testcase_29 AC 91 ms
17,432 KB
testcase_30 AC 86 ms
16,572 KB
testcase_31 AC 201 ms
28,532 KB
testcase_32 AC 128 ms
21,640 KB
testcase_33 AC 170 ms
25,572 KB
testcase_34 AC 224 ms
30,516 KB
testcase_35 AC 158 ms
24,376 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