結果

問題 No.1478 Simple Sugoroku
ユーザー KudeKude
提出日時 2021-04-16 21:13:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 91,920 KB
最終ジャッジ日時 2023-09-15 23:02:51
合計ジャッジ時間 5,687 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,572 KB
testcase_01 AC 70 ms
71,460 KB
testcase_02 AC 71 ms
71,184 KB
testcase_03 AC 69 ms
71,116 KB
testcase_04 AC 71 ms
71,216 KB
testcase_05 AC 68 ms
71,444 KB
testcase_06 AC 70 ms
71,464 KB
testcase_07 AC 70 ms
71,596 KB
testcase_08 AC 70 ms
71,536 KB
testcase_09 AC 70 ms
71,248 KB
testcase_10 AC 70 ms
71,360 KB
testcase_11 AC 70 ms
71,660 KB
testcase_12 AC 71 ms
71,356 KB
testcase_13 AC 95 ms
91,912 KB
testcase_14 AC 94 ms
91,648 KB
testcase_15 AC 94 ms
91,584 KB
testcase_16 AC 95 ms
91,460 KB
testcase_17 AC 95 ms
91,584 KB
testcase_18 AC 95 ms
91,692 KB
testcase_19 AC 97 ms
91,920 KB
testcase_20 AC 95 ms
91,672 KB
testcase_21 AC 95 ms
91,684 KB
testcase_22 AC 97 ms
91,704 KB
testcase_23 AC 95 ms
91,756 KB
testcase_24 AC 96 ms
91,760 KB
testcase_25 AC 98 ms
91,784 KB
testcase_26 AC 94 ms
91,676 KB
testcase_27 AC 96 ms
91,524 KB
testcase_28 AC 94 ms
90,444 KB
testcase_29 AC 95 ms
90,996 KB
testcase_30 AC 94 ms
90,952 KB
testcase_31 AC 93 ms
90,832 KB
testcase_32 AC 92 ms
91,000 KB
testcase_33 AC 93 ms
90,952 KB
testcase_34 AC 94 ms
90,996 KB
testcase_35 AC 95 ms
91,296 KB
testcase_36 AC 94 ms
90,948 KB
testcase_37 AC 94 ms
91,656 KB
testcase_38 AC 94 ms
91,292 KB
testcase_39 AC 94 ms
91,352 KB
testcase_40 AC 95 ms
91,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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