結果

問題 No.1478 Simple Sugoroku
ユーザー tamatotamato
提出日時 2021-04-16 21:28:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 386 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,728 KB
実行使用メモリ 90,868 KB
最終ジャッジ日時 2023-09-15 23:33:10
合計ジャッジ時間 5,755 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,560 KB
testcase_01 AC 70 ms
71,736 KB
testcase_02 AC 71 ms
71,764 KB
testcase_03 AC 70 ms
71,704 KB
testcase_04 AC 71 ms
71,640 KB
testcase_05 AC 72 ms
71,484 KB
testcase_06 AC 71 ms
71,872 KB
testcase_07 AC 72 ms
71,796 KB
testcase_08 AC 71 ms
71,920 KB
testcase_09 AC 71 ms
71,688 KB
testcase_10 AC 71 ms
71,416 KB
testcase_11 AC 70 ms
71,788 KB
testcase_12 AC 71 ms
71,464 KB
testcase_13 AC 96 ms
90,748 KB
testcase_14 AC 96 ms
90,504 KB
testcase_15 AC 96 ms
90,784 KB
testcase_16 AC 95 ms
90,496 KB
testcase_17 AC 96 ms
90,776 KB
testcase_18 AC 94 ms
90,668 KB
testcase_19 AC 96 ms
90,792 KB
testcase_20 AC 96 ms
90,668 KB
testcase_21 AC 94 ms
90,856 KB
testcase_22 AC 95 ms
90,600 KB
testcase_23 AC 97 ms
90,740 KB
testcase_24 AC 97 ms
90,740 KB
testcase_25 AC 96 ms
90,868 KB
testcase_26 AC 97 ms
90,664 KB
testcase_27 AC 96 ms
90,700 KB
testcase_28 AC 94 ms
89,948 KB
testcase_29 AC 95 ms
90,232 KB
testcase_30 AC 97 ms
90,080 KB
testcase_31 AC 95 ms
90,196 KB
testcase_32 AC 91 ms
90,280 KB
testcase_33 AC 93 ms
90,440 KB
testcase_34 AC 93 ms
90,184 KB
testcase_35 AC 92 ms
90,260 KB
testcase_36 AC 96 ms
90,372 KB
testcase_37 AC 94 ms
90,680 KB
testcase_38 AC 95 ms
90,508 KB
testcase_39 AC 95 ms
90,388 KB
testcase_40 AC 95 ms
90,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N, M = map(int, input().split())
    B = list(map(int, input().split()))

    ans = N - 1
    E = (N - B[-1])
    for i in range(M-2, -1, -1):
        ans = min(ans, B[0] - 1 + M / (M - i - 1) + E / (M - i - 1))
        E += (N - B[i])
    print(ans)


if __name__ == '__main__':
    main()
0