結果

問題 No.836 じょうよ
ユーザー r_ishidar_ishida
提出日時 2020-02-10 22:43:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 101 ms / 1,000 ms
コード長 321 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2024-04-08 14:25:52
合計ジャッジ時間 3,432 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
9,984 KB
testcase_01 AC 29 ms
9,856 KB
testcase_02 AC 30 ms
9,856 KB
testcase_03 AC 28 ms
9,856 KB
testcase_04 AC 30 ms
9,856 KB
testcase_05 AC 28 ms
9,856 KB
testcase_06 AC 30 ms
9,856 KB
testcase_07 AC 29 ms
9,856 KB
testcase_08 AC 30 ms
9,856 KB
testcase_09 AC 29 ms
9,856 KB
testcase_10 AC 31 ms
9,856 KB
testcase_11 AC 35 ms
9,984 KB
testcase_12 AC 39 ms
9,984 KB
testcase_13 AC 34 ms
9,984 KB
testcase_14 AC 31 ms
9,984 KB
testcase_15 AC 36 ms
9,984 KB
testcase_16 AC 87 ms
9,984 KB
testcase_17 AC 82 ms
9,984 KB
testcase_18 AC 33 ms
9,984 KB
testcase_19 AC 40 ms
9,984 KB
testcase_20 AC 64 ms
9,984 KB
testcase_21 AC 31 ms
10,112 KB
testcase_22 AC 56 ms
10,240 KB
testcase_23 AC 87 ms
10,240 KB
testcase_24 AC 34 ms
10,240 KB
testcase_25 AC 51 ms
10,240 KB
testcase_26 AC 31 ms
9,984 KB
testcase_27 AC 31 ms
10,112 KB
testcase_28 AC 36 ms
10,240 KB
testcase_29 AC 31 ms
10,112 KB
testcase_30 AC 31 ms
9,984 KB
testcase_31 AC 36 ms
10,240 KB
testcase_32 AC 35 ms
10,240 KB
testcase_33 AC 32 ms
9,984 KB
testcase_34 AC 34 ms
10,240 KB
testcase_35 AC 36 ms
10,240 KB
testcase_36 AC 62 ms
10,240 KB
testcase_37 AC 61 ms
10,240 KB
testcase_38 AC 77 ms
10,240 KB
testcase_39 AC 69 ms
10,240 KB
testcase_40 AC 101 ms
10,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l,r,n = map(int,input().split())
x1 = l//n
y1 = l%n
x2 = r//n
y2 = r%n
if y1 > y2:
    for i in range(n):
        if y2 < i < y1:
            print(x2-x1-1)
        else:
            print(x2 - x1)
else:
    for i in range(n):
        if y1 <= i <= y2:
            print(x2-x1+1)
        else:
            print(x2 - x1)
0