結果

問題 No.1478 Simple Sugoroku
ユーザー rlangevinrlangevin
提出日時 2023-05-17 12:22:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 1,301 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 91,736 KB
最終ジャッジ日時 2023-08-21 17:36:48
合計ジャッジ時間 8,183 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,256 KB
testcase_01 AC 72 ms
71,216 KB
testcase_02 AC 72 ms
71,372 KB
testcase_03 AC 73 ms
71,208 KB
testcase_04 AC 75 ms
71,448 KB
testcase_05 AC 73 ms
71,360 KB
testcase_06 AC 72 ms
71,476 KB
testcase_07 AC 74 ms
71,324 KB
testcase_08 AC 73 ms
71,052 KB
testcase_09 AC 74 ms
71,228 KB
testcase_10 AC 73 ms
71,280 KB
testcase_11 AC 74 ms
71,440 KB
testcase_12 AC 73 ms
71,288 KB
testcase_13 AC 103 ms
91,620 KB
testcase_14 AC 97 ms
91,128 KB
testcase_15 AC 100 ms
91,448 KB
testcase_16 AC 97 ms
91,396 KB
testcase_17 AC 99 ms
91,704 KB
testcase_18 AC 99 ms
91,332 KB
testcase_19 AC 99 ms
91,556 KB
testcase_20 AC 98 ms
91,232 KB
testcase_21 AC 99 ms
91,520 KB
testcase_22 AC 96 ms
91,372 KB
testcase_23 AC 96 ms
91,520 KB
testcase_24 AC 98 ms
91,472 KB
testcase_25 AC 98 ms
91,728 KB
testcase_26 AC 98 ms
91,344 KB
testcase_27 AC 98 ms
91,736 KB
testcase_28 AC 97 ms
90,420 KB
testcase_29 AC 97 ms
90,672 KB
testcase_30 AC 98 ms
90,792 KB
testcase_31 AC 98 ms
90,488 KB
testcase_32 AC 97 ms
90,500 KB
testcase_33 AC 95 ms
90,848 KB
testcase_34 AC 95 ms
91,068 KB
testcase_35 AC 96 ms
90,848 KB
testcase_36 AC 97 ms
90,808 KB
testcase_37 AC 100 ms
90,960 KB
testcase_38 AC 98 ms
91,364 KB
testcase_39 AC 97 ms
90,924 KB
testcase_40 AC 99 ms
91,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
B = list(map(int, input().split()))
val = B[0] - 1 + N - B[-1]
S = 0
ans = N - 1
for k in range(M - 1, 0, -1):
    S += B[-1] - B[k]
    temp = (M + S)/(M - k)
    ans = min(ans, temp + val)
print(ans) 
0