結果

問題 No.1808 Fullgold Alchemist
ユーザー ytftytft
提出日時 2022-02-12 22:45:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 107,016 KB
最終ジャッジ日時 2023-09-11 11:19:27
合計ジャッジ時間 5,807 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,076 KB
testcase_01 AC 70 ms
70,872 KB
testcase_02 AC 69 ms
70,816 KB
testcase_03 AC 70 ms
70,832 KB
testcase_04 AC 70 ms
70,832 KB
testcase_05 AC 108 ms
103,916 KB
testcase_06 AC 118 ms
106,864 KB
testcase_07 AC 118 ms
107,016 KB
testcase_08 AC 128 ms
99,536 KB
testcase_09 AC 128 ms
99,484 KB
testcase_10 AC 129 ms
99,536 KB
testcase_11 AC 127 ms
100,336 KB
testcase_12 AC 119 ms
106,544 KB
testcase_13 AC 119 ms
106,500 KB
testcase_14 AC 120 ms
106,668 KB
testcase_15 AC 120 ms
106,336 KB
testcase_16 AC 78 ms
76,116 KB
testcase_17 AC 70 ms
70,892 KB
testcase_18 AC 83 ms
79,280 KB
testcase_19 AC 77 ms
76,164 KB
testcase_20 AC 85 ms
81,600 KB
testcase_21 AC 80 ms
76,124 KB
testcase_22 AC 71 ms
71,112 KB
testcase_23 AC 79 ms
76,312 KB
testcase_24 AC 78 ms
76,060 KB
testcase_25 AC 78 ms
76,100 KB
testcase_26 AC 82 ms
78,364 KB
testcase_27 AC 85 ms
80,512 KB
testcase_28 AC 126 ms
99,416 KB
testcase_29 AC 89 ms
84,352 KB
testcase_30 AC 87 ms
83,192 KB
testcase_31 AC 114 ms
101,568 KB
testcase_32 AC 97 ms
91,100 KB
testcase_33 AC 108 ms
97,708 KB
testcase_34 AC 123 ms
99,344 KB
testcase_35 AC 103 ms
95,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
A=list(map(int,input().split()))
ans=float('inf')
for i in range(1,N):
    A[i]+=A[i-1]
for i in range(N):
    ans=min(ans,A[i]//((i+1)*M))
print(ans)
0