結果

問題 No.836 じょうよ
ユーザー ohanaohana
提出日時 2023-10-27 11:50:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 299 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 81,800 KB
実行使用メモリ 75,780 KB
最終ジャッジ日時 2023-10-27 11:50:52
合計ジャッジ時間 4,352 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
75,732 KB
testcase_01 AC 31 ms
53,592 KB
testcase_02 AC 31 ms
53,592 KB
testcase_03 AC 31 ms
53,592 KB
testcase_04 AC 31 ms
53,592 KB
testcase_05 AC 37 ms
53,592 KB
testcase_06 AC 32 ms
53,592 KB
testcase_07 AC 34 ms
53,592 KB
testcase_08 AC 31 ms
53,592 KB
testcase_09 AC 31 ms
53,592 KB
testcase_10 AC 30 ms
53,592 KB
testcase_11 AC 52 ms
68,524 KB
testcase_12 AC 48 ms
66,456 KB
testcase_13 AC 55 ms
70,676 KB
testcase_14 AC 40 ms
62,320 KB
testcase_15 AC 51 ms
68,616 KB
testcase_16 AC 63 ms
75,700 KB
testcase_17 AC 61 ms
75,780 KB
testcase_18 AC 47 ms
66,456 KB
testcase_19 AC 53 ms
70,664 KB
testcase_20 AC 51 ms
70,548 KB
testcase_21 AC 41 ms
62,320 KB
testcase_22 AC 50 ms
70,548 KB
testcase_23 AC 66 ms
75,552 KB
testcase_24 AC 47 ms
66,452 KB
testcase_25 AC 72 ms
68,500 KB
testcase_26 AC 40 ms
62,320 KB
testcase_27 AC 41 ms
62,320 KB
testcase_28 AC 55 ms
70,676 KB
testcase_29 AC 48 ms
62,320 KB
testcase_30 AC 46 ms
62,320 KB
testcase_31 AC 47 ms
66,456 KB
testcase_32 AC 41 ms
62,320 KB
testcase_33 AC 41 ms
62,320 KB
testcase_34 AC 44 ms
62,320 KB
testcase_35 AC 47 ms
66,456 KB
testcase_36 AC 50 ms
72,600 KB
testcase_37 AC 55 ms
70,552 KB
testcase_38 AC 56 ms
73,192 KB
testcase_39 AC 56 ms
72,600 KB
testcase_40 AC 57 ms
75,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ln, rn = l % n, r % n
t = r - l + 1
if t % n == 0:
    for i in range(n):
        print(t // n)
elif ln <= rn:
    for i in range(n):
        print(t // n + int(ln <= i <= rn))
elif rn < ln:
    for i in range(n):
        print(t // n + int(i <= rn or ln <= i))
0