結果

問題 No.1808 Fullgold Alchemist
ユーザー DrDrpilotDrDrpilot
提出日時 2022-01-18 14:50:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 113,920 KB
最終ジャッジ日時 2024-05-02 19:23:20
合計ジャッジ時間 4,231 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,840 KB
testcase_01 AC 36 ms
52,096 KB
testcase_02 AC 38 ms
52,224 KB
testcase_03 AC 36 ms
51,968 KB
testcase_04 AC 36 ms
51,712 KB
testcase_05 AC 87 ms
113,920 KB
testcase_06 AC 97 ms
110,080 KB
testcase_07 AC 95 ms
110,336 KB
testcase_08 AC 118 ms
112,284 KB
testcase_09 AC 116 ms
112,020 KB
testcase_10 AC 107 ms
112,024 KB
testcase_11 AC 113 ms
111,876 KB
testcase_12 AC 97 ms
113,536 KB
testcase_13 AC 109 ms
113,792 KB
testcase_14 AC 102 ms
113,280 KB
testcase_15 AC 100 ms
113,664 KB
testcase_16 AC 44 ms
60,544 KB
testcase_17 AC 36 ms
52,096 KB
testcase_18 AC 52 ms
68,736 KB
testcase_19 AC 43 ms
59,776 KB
testcase_20 AC 54 ms
73,472 KB
testcase_21 AC 45 ms
64,256 KB
testcase_22 AC 36 ms
52,096 KB
testcase_23 AC 49 ms
62,976 KB
testcase_24 AC 44 ms
60,160 KB
testcase_25 AC 43 ms
61,312 KB
testcase_26 AC 50 ms
68,608 KB
testcase_27 AC 54 ms
71,808 KB
testcase_28 AC 104 ms
103,936 KB
testcase_29 AC 65 ms
78,976 KB
testcase_30 AC 61 ms
76,800 KB
testcase_31 AC 96 ms
104,192 KB
testcase_32 AC 77 ms
91,648 KB
testcase_33 AC 91 ms
106,368 KB
testcase_34 AC 99 ms
103,680 KB
testcase_35 AC 90 ms
100,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
a=list(map(int,input().split()))
from itertools import accumulate
s=list(accumulate(a))
def check(x):
    for i in range(n):
        if s[i]<(i+1)*m*x:
            return False
    return True
l=0
r=10**15
while r-l>1:
    x=(r+l)//2
    if check(x):
        l=x
    else:
        r=x
print(l)
0