結果

問題 No.836 じょうよ
ユーザー nebukuro09nebukuro09
提出日時 2019-06-14 21:29:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 82,392 KB
実行使用メモリ 76,704 KB
最終ジャッジ日時 2024-04-26 07:32:27
合計ジャッジ時間 3,977 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
76,032 KB
testcase_01 AC 35 ms
51,840 KB
testcase_02 AC 36 ms
51,840 KB
testcase_03 AC 34 ms
51,968 KB
testcase_04 AC 35 ms
52,480 KB
testcase_05 AC 37 ms
51,840 KB
testcase_06 AC 35 ms
51,584 KB
testcase_07 AC 35 ms
51,712 KB
testcase_08 AC 35 ms
51,584 KB
testcase_09 WA -
testcase_10 AC 34 ms
52,352 KB
testcase_11 AC 58 ms
67,072 KB
testcase_12 AC 56 ms
65,792 KB
testcase_13 AC 62 ms
68,992 KB
testcase_14 AC 46 ms
61,568 KB
testcase_15 AC 58 ms
68,352 KB
testcase_16 AC 68 ms
76,048 KB
testcase_17 AC 67 ms
76,704 KB
testcase_18 AC 54 ms
65,536 KB
testcase_19 AC 58 ms
68,864 KB
testcase_20 AC 56 ms
70,400 KB
testcase_21 AC 49 ms
61,952 KB
testcase_22 AC 59 ms
69,632 KB
testcase_23 AC 64 ms
75,904 KB
testcase_24 AC 55 ms
65,920 KB
testcase_25 AC 56 ms
68,096 KB
testcase_26 AC 48 ms
61,424 KB
testcase_27 AC 48 ms
61,696 KB
testcase_28 AC 63 ms
69,504 KB
testcase_29 AC 50 ms
61,440 KB
testcase_30 AC 47 ms
61,668 KB
testcase_31 AC 53 ms
65,920 KB
testcase_32 AC 49 ms
62,720 KB
testcase_33 AC 49 ms
61,696 KB
testcase_34 AC 49 ms
62,464 KB
testcase_35 AC 56 ms
65,408 KB
testcase_36 AC 65 ms
70,784 KB
testcase_37 AC 58 ms
70,400 KB
testcase_38 AC 61 ms
73,600 KB
testcase_39 AC 60 ms
71,912 KB
testcase_40 AC 64 ms
75,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if n == 1:
    print(r - l + 1)
    exit()

if l % n == 0:
    ll = l
else:
    ll = l + n - l % n

if r % n == 0:
    rr = r - 1
else:
    rr = r - r % n - 1

base = ((rr + 1) - l) // n
ln = l % n
rn = r % n

for i in range(n):
    x = base
    if i >= ln:
        x += 1
    if i <= rn:
        x += 1
    print(x)
0