結果

問題 No.836 じょうよ
ユーザー ssmkzkssmkzk
提出日時 2019-06-22 15:53:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 256 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 10,176 KB
最終ジャッジ日時 2023-08-27 02:56:04
合計ジャッジ時間 3,423 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
9,260 KB
testcase_01 AC 16 ms
7,812 KB
testcase_02 AC 16 ms
7,940 KB
testcase_03 AC 15 ms
7,824 KB
testcase_04 AC 16 ms
7,948 KB
testcase_05 AC 16 ms
7,744 KB
testcase_06 AC 15 ms
7,836 KB
testcase_07 AC 15 ms
7,884 KB
testcase_08 AC 16 ms
7,908 KB
testcase_09 AC 15 ms
7,812 KB
testcase_10 AC 15 ms
7,944 KB
testcase_11 AC 21 ms
8,220 KB
testcase_12 AC 23 ms
8,288 KB
testcase_13 AC 20 ms
8,184 KB
testcase_14 AC 16 ms
7,880 KB
testcase_15 AC 22 ms
8,244 KB
testcase_16 AC 67 ms
9,264 KB
testcase_17 AC 68 ms
9,792 KB
testcase_18 AC 21 ms
8,212 KB
testcase_19 AC 29 ms
8,840 KB
testcase_20 AC 54 ms
10,176 KB
testcase_21 AC 17 ms
8,188 KB
testcase_22 AC 37 ms
8,684 KB
testcase_23 AC 64 ms
8,948 KB
testcase_24 AC 20 ms
8,392 KB
testcase_25 AC 35 ms
8,552 KB
testcase_26 AC 17 ms
7,904 KB
testcase_27 AC 17 ms
8,244 KB
testcase_28 AC 21 ms
8,416 KB
testcase_29 AC 18 ms
8,180 KB
testcase_30 AC 17 ms
7,812 KB
testcase_31 AC 24 ms
8,448 KB
testcase_32 AC 23 ms
8,448 KB
testcase_33 AC 17 ms
7,796 KB
testcase_34 AC 22 ms
8,472 KB
testcase_35 AC 22 ms
8,412 KB
testcase_36 AC 42 ms
8,716 KB
testcase_37 AC 41 ms
8,796 KB
testcase_38 AC 52 ms
8,788 KB
testcase_39 AC 46 ms
8,684 KB
testcase_40 AC 75 ms
8,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

k = (r - l + 1) // n 
kk = (r - l + 1) % n
ans = [k for i in range(n)]

ck = l % n

for i in range(kk):
    if ck + i > n - 1:
        ans[ck + i - n] += 1
    else:
        ans[ck+ i] += 1

for li in ans:
    print(li)
0