結果

問題 No.1808 Fullgold Alchemist
ユーザー MasKoaTSMasKoaTS
提出日時 2021-12-22 11:05:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,940 KB
実行使用メモリ 106,008 KB
最終ジャッジ日時 2023-10-14 09:18:04
合計ジャッジ時間 8,242 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,244 KB
testcase_01 AC 71 ms
71,264 KB
testcase_02 AC 71 ms
71,276 KB
testcase_03 AC 71 ms
71,448 KB
testcase_04 AC 72 ms
71,392 KB
testcase_05 AC 113 ms
103,948 KB
testcase_06 AC 112 ms
106,008 KB
testcase_07 AC 113 ms
105,852 KB
testcase_08 AC 125 ms
99,760 KB
testcase_09 AC 127 ms
99,672 KB
testcase_10 AC 128 ms
99,936 KB
testcase_11 AC 129 ms
100,060 KB
testcase_12 AC 117 ms
105,760 KB
testcase_13 AC 115 ms
105,536 KB
testcase_14 AC 115 ms
105,788 KB
testcase_15 AC 117 ms
105,648 KB
testcase_16 AC 77 ms
76,584 KB
testcase_17 AC 72 ms
71,224 KB
testcase_18 AC 80 ms
79,284 KB
testcase_19 AC 75 ms
76,464 KB
testcase_20 AC 84 ms
81,588 KB
testcase_21 AC 76 ms
76,640 KB
testcase_22 AC 72 ms
71,084 KB
testcase_23 AC 77 ms
76,428 KB
testcase_24 AC 76 ms
76,576 KB
testcase_25 AC 78 ms
76,448 KB
testcase_26 AC 82 ms
78,308 KB
testcase_27 AC 83 ms
80,328 KB
testcase_28 AC 122 ms
98,212 KB
testcase_29 AC 90 ms
84,164 KB
testcase_30 AC 87 ms
83,060 KB
testcase_31 AC 110 ms
100,052 KB
testcase_32 AC 97 ms
90,092 KB
testcase_33 AC 105 ms
97,092 KB
testcase_34 AC 121 ms
98,292 KB
testcase_35 AC 103 ms
94,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

ans = 10 ** 18
s = 0
for i in range(n):
	s += a[i]
	k = s // ((i + 1) * m)
	if(k < ans):
		ans = k
print(ans)
0