結果

問題 No.836 じょうよ
ユーザー ysys
提出日時 2019-11-03 22:31:24
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 140 ms / 1,000 ms
コード長 286 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 8,308 KB
最終ジャッジ日時 2023-10-13 01:50:53
合計ジャッジ時間 3,507 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
7,884 KB
testcase_01 AC 16 ms
7,804 KB
testcase_02 AC 15 ms
7,776 KB
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 15 ms
7,768 KB
testcase_05 AC 16 ms
7,792 KB
testcase_06 AC 16 ms
7,768 KB
testcase_07 AC 16 ms
7,768 KB
testcase_08 AC 16 ms
7,820 KB
testcase_09 AC 15 ms
7,808 KB
testcase_10 AC 15 ms
7,864 KB
testcase_11 AC 24 ms
7,840 KB
testcase_12 AC 27 ms
7,768 KB
testcase_13 AC 22 ms
7,788 KB
testcase_14 AC 17 ms
7,868 KB
testcase_15 AC 25 ms
7,740 KB
testcase_16 AC 104 ms
7,896 KB
testcase_17 AC 95 ms
7,844 KB
testcase_18 AC 23 ms
7,756 KB
testcase_19 AC 32 ms
7,812 KB
testcase_20 AC 64 ms
7,800 KB
testcase_21 AC 18 ms
8,308 KB
testcase_22 AC 51 ms
8,268 KB
testcase_23 AC 92 ms
8,196 KB
testcase_24 AC 21 ms
8,296 KB
testcase_25 AC 42 ms
8,244 KB
testcase_26 AC 17 ms
7,760 KB
testcase_27 AC 19 ms
8,172 KB
testcase_28 AC 25 ms
8,188 KB
testcase_29 AC 20 ms
8,160 KB
testcase_30 AC 18 ms
7,780 KB
testcase_31 AC 26 ms
8,256 KB
testcase_32 AC 24 ms
8,192 KB
testcase_33 AC 18 ms
7,820 KB
testcase_34 AC 23 ms
8,272 KB
testcase_35 AC 24 ms
8,308 KB
testcase_36 AC 71 ms
8,248 KB
testcase_37 AC 67 ms
8,160 KB
testcase_38 AC 94 ms
8,196 KB
testcase_39 AC 72 ms
8,252 KB
testcase_40 AC 140 ms
8,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


def calc(r, n, mod):
    if r == 0:
        return 0
    c = r // n

    if 0 < mod <= r % n:
        c += 1

    return c


def calc1(l, r, n, mod):
    return calc(r, n, mod) - calc(l - 1, n, mod)


for i in range(n):
    print(calc1(l, r, n, i))
0