結果

問題 No.1478 Simple Sugoroku
ユーザー hir355hir355
提出日時 2021-04-16 20:45:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 91,736 KB
最終ジャッジ日時 2023-09-15 21:50:48
合計ジャッジ時間 5,735 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,360 KB
testcase_01 AC 71 ms
71,220 KB
testcase_02 AC 70 ms
71,384 KB
testcase_03 AC 70 ms
71,164 KB
testcase_04 AC 71 ms
71,284 KB
testcase_05 AC 70 ms
70,996 KB
testcase_06 AC 71 ms
71,288 KB
testcase_07 AC 71 ms
70,992 KB
testcase_08 AC 71 ms
71,208 KB
testcase_09 AC 72 ms
71,176 KB
testcase_10 AC 70 ms
70,936 KB
testcase_11 AC 71 ms
71,000 KB
testcase_12 AC 70 ms
70,996 KB
testcase_13 AC 98 ms
91,380 KB
testcase_14 AC 97 ms
91,236 KB
testcase_15 AC 98 ms
91,304 KB
testcase_16 AC 98 ms
91,368 KB
testcase_17 AC 98 ms
91,464 KB
testcase_18 AC 98 ms
91,240 KB
testcase_19 AC 97 ms
91,440 KB
testcase_20 AC 99 ms
91,520 KB
testcase_21 AC 98 ms
91,388 KB
testcase_22 AC 99 ms
91,392 KB
testcase_23 AC 98 ms
91,328 KB
testcase_24 AC 98 ms
91,736 KB
testcase_25 AC 97 ms
91,344 KB
testcase_26 AC 98 ms
91,292 KB
testcase_27 AC 98 ms
91,404 KB
testcase_28 AC 95 ms
90,160 KB
testcase_29 AC 96 ms
90,432 KB
testcase_30 AC 95 ms
90,540 KB
testcase_31 AC 94 ms
90,564 KB
testcase_32 AC 95 ms
90,660 KB
testcase_33 AC 96 ms
90,848 KB
testcase_34 AC 96 ms
90,712 KB
testcase_35 AC 99 ms
90,688 KB
testcase_36 AC 97 ms
90,848 KB
testcase_37 AC 95 ms
91,308 KB
testcase_38 AC 96 ms
91,096 KB
testcase_39 AC 97 ms
91,060 KB
testcase_40 AC 97 ms
91,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
b = list(map(int, input().split()))
s = n * m - sum(b)
ans = n - 1
for i in range(m - 1):
    s -= n - b[i]
    ans = min(ans, b[0] - 1 + (m + s) / (m - (i + 1)))
print(ans)
0