結果

問題 No.1808 Fullgold Alchemist
ユーザー playerplayer
提出日時 2024-01-15 01:38:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 119,908 KB
最終ジャッジ日時 2024-01-15 01:38:46
合計ジャッジ時間 6,683 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 35 ms
53,460 KB
testcase_02 AC 35 ms
53,460 KB
testcase_03 AC 35 ms
53,460 KB
testcase_04 AC 35 ms
53,460 KB
testcase_05 AC 83 ms
112,044 KB
testcase_06 AC 98 ms
119,908 KB
testcase_07 AC 90 ms
118,116 KB
testcase_08 WA -
testcase_09 AC 110 ms
112,324 KB
testcase_10 AC 109 ms
112,324 KB
testcase_11 AC 108 ms
112,300 KB
testcase_12 AC 93 ms
116,968 KB
testcase_13 AC 96 ms
117,736 KB
testcase_14 AC 96 ms
117,748 KB
testcase_15 AC 96 ms
117,736 KB
testcase_16 AC 42 ms
62,220 KB
testcase_17 AC 34 ms
53,460 KB
testcase_18 AC 49 ms
70,640 KB
testcase_19 AC 42 ms
62,240 KB
testcase_20 AC 53 ms
73,836 KB
testcase_21 AC 44 ms
64,672 KB
testcase_22 AC 35 ms
53,460 KB
testcase_23 AC 43 ms
64,140 KB
testcase_24 AC 43 ms
62,220 KB
testcase_25 AC 42 ms
62,220 KB
testcase_26 AC 50 ms
69,504 KB
testcase_27 AC 53 ms
72,208 KB
testcase_28 AC 99 ms
103,764 KB
testcase_29 AC 60 ms
80,020 KB
testcase_30 AC 58 ms
78,380 KB
testcase_31 AC 99 ms
111,252 KB
testcase_32 AC 71 ms
91,516 KB
testcase_33 AC 88 ms
103,716 KB
testcase_34 AC 98 ms
103,692 KB
testcase_35 AC 82 ms
99,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

acc = [0]
for i in a:
    acc.append(acc[-1] + i)

left = -1
right = 10**9

while abs(right - left) > 1:
    mid = (right + left) // 2
    flag = True
    for i in range(n):
        if acc[i + 1] >= (i + 1) * mid * m:
            continue
        else:
            flag = False
            break

    if flag:
        left = mid
    else:
        right = mid

print(left)
0