結果

問題 No.1808 Fullgold Alchemist
ユーザー MasKoaTSMasKoaTS
提出日時 2021-10-22 18:21:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 114,504 KB
最終ジャッジ日時 2024-04-08 15:00:02
合計ジャッジ時間 4,071 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 35 ms
53,460 KB
testcase_02 AC 40 ms
53,460 KB
testcase_03 AC 40 ms
53,460 KB
testcase_04 AC 35 ms
53,460 KB
testcase_05 AC 91 ms
114,504 KB
testcase_06 AC 93 ms
110,064 KB
testcase_07 AC 93 ms
110,064 KB
testcase_08 AC 109 ms
112,060 KB
testcase_09 AC 109 ms
112,060 KB
testcase_10 AC 111 ms
112,060 KB
testcase_11 AC 112 ms
112,028 KB
testcase_12 AC 99 ms
113,264 KB
testcase_13 AC 99 ms
113,136 KB
testcase_14 AC 99 ms
113,148 KB
testcase_15 AC 98 ms
113,136 KB
testcase_16 AC 42 ms
62,092 KB
testcase_17 AC 35 ms
53,460 KB
testcase_18 AC 50 ms
70,736 KB
testcase_19 AC 40 ms
59,964 KB
testcase_20 AC 52 ms
74,092 KB
testcase_21 AC 43 ms
64,544 KB
testcase_22 AC 35 ms
53,460 KB
testcase_23 AC 43 ms
64,140 KB
testcase_24 AC 42 ms
62,096 KB
testcase_25 AC 42 ms
62,092 KB
testcase_26 AC 50 ms
69,364 KB
testcase_27 AC 52 ms
72,080 KB
testcase_28 AC 99 ms
103,516 KB
testcase_29 AC 60 ms
79,732 KB
testcase_30 AC 58 ms
78,188 KB
testcase_31 AC 91 ms
103,964 KB
testcase_32 AC 70 ms
93,296 KB
testcase_33 AC 84 ms
104,868 KB
testcase_34 AC 97 ms
103,444 KB
testcase_35 AC 80 ms
100,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

n,m = map(int,input().split())
a = list(map(int,input().split()))
s = list(itertools.accumulate(a))

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

print(ans)
0