結果

問題 No.836 じょうよ
ユーザー ThetaTheta
提出日時 2022-11-02 14:04:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 512 bytes
コンパイル時間 607 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 8,416 KB
最終ジャッジ日時 2023-09-24 03:31:32
合計ジャッジ時間 4,374 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
7,916 KB
testcase_01 AC 14 ms
7,812 KB
testcase_02 AC 14 ms
7,784 KB
testcase_03 AC 15 ms
7,832 KB
testcase_04 AC 14 ms
7,812 KB
testcase_05 AC 14 ms
7,968 KB
testcase_06 AC 14 ms
7,860 KB
testcase_07 AC 13 ms
7,788 KB
testcase_08 AC 14 ms
7,852 KB
testcase_09 WA -
testcase_10 AC 14 ms
8,004 KB
testcase_11 AC 17 ms
7,804 KB
testcase_12 AC 19 ms
7,984 KB
testcase_13 AC 18 ms
7,872 KB
testcase_14 AC 13 ms
7,972 KB
testcase_15 AC 17 ms
7,856 KB
testcase_16 AC 54 ms
7,800 KB
testcase_17 AC 48 ms
7,860 KB
testcase_18 AC 16 ms
7,928 KB
testcase_19 AC 20 ms
7,856 KB
testcase_20 AC 36 ms
7,856 KB
testcase_21 AC 15 ms
8,364 KB
testcase_22 AC 30 ms
8,236 KB
testcase_23 AC 50 ms
8,248 KB
testcase_24 AC 16 ms
8,200 KB
testcase_25 AC 26 ms
8,328 KB
testcase_26 AC 14 ms
7,808 KB
testcase_27 AC 14 ms
8,248 KB
testcase_28 AC 16 ms
8,316 KB
testcase_29 AC 14 ms
8,200 KB
testcase_30 AC 13 ms
8,384 KB
testcase_31 AC 18 ms
8,372 KB
testcase_32 AC 18 ms
8,256 KB
testcase_33 AC 15 ms
8,248 KB
testcase_34 AC 18 ms
8,316 KB
testcase_35 AC 17 ms
8,212 KB
testcase_36 AC 35 ms
8,384 KB
testcase_37 AC 32 ms
8,416 KB
testcase_38 AC 42 ms
8,248 KB
testcase_39 AC 37 ms
8,360 KB
testcase_40 AC 61 ms
8,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    l, r, n = map(int, input().split())

    l_rest = l % n
    r_rest = r % n
    l_set_start = l + (n - l_rest) % n
    r_set_end = r - r_rest

    loop_count = (r_set_end - l_set_start) // n

    for num in range(n):
        out_range = 0
        if num == 0:
            print(loop_count+1)
            continue
        if num >= l_rest:
            out_range += 1
        if num <= r_rest:
            out_range += 1
        print(loop_count + out_range)


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