結果

問題 No.836 じょうよ
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2020-11-15 19:07:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 67 ms / 1,000 ms
コード長 277 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 17,176 KB
最終ジャッジ日時 2023-09-30 07:05:28
合計ジャッジ時間 3,813 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
16,288 KB
testcase_01 AC 16 ms
7,856 KB
testcase_02 AC 16 ms
7,908 KB
testcase_03 AC 16 ms
7,916 KB
testcase_04 AC 16 ms
7,944 KB
testcase_05 AC 16 ms
7,908 KB
testcase_06 AC 16 ms
7,784 KB
testcase_07 AC 16 ms
7,772 KB
testcase_08 AC 16 ms
7,792 KB
testcase_09 AC 19 ms
7,792 KB
testcase_10 AC 17 ms
7,760 KB
testcase_11 AC 20 ms
8,816 KB
testcase_12 AC 22 ms
9,284 KB
testcase_13 AC 19 ms
8,772 KB
testcase_14 AC 16 ms
7,756 KB
testcase_15 AC 21 ms
8,916 KB
testcase_16 AC 63 ms
17,176 KB
testcase_17 AC 56 ms
16,064 KB
testcase_18 AC 20 ms
8,876 KB
testcase_19 AC 24 ms
9,912 KB
testcase_20 AC 40 ms
13,016 KB
testcase_21 AC 16 ms
8,212 KB
testcase_22 AC 28 ms
10,564 KB
testcase_23 AC 43 ms
14,052 KB
testcase_24 AC 18 ms
8,456 KB
testcase_25 AC 26 ms
10,076 KB
testcase_26 AC 16 ms
7,896 KB
testcase_27 AC 17 ms
8,220 KB
testcase_28 AC 20 ms
8,540 KB
testcase_29 AC 18 ms
8,256 KB
testcase_30 AC 17 ms
7,792 KB
testcase_31 AC 20 ms
8,848 KB
testcase_32 AC 19 ms
8,840 KB
testcase_33 AC 18 ms
7,728 KB
testcase_34 AC 19 ms
8,584 KB
testcase_35 AC 20 ms
8,760 KB
testcase_36 AC 35 ms
11,624 KB
testcase_37 AC 34 ms
11,264 KB
testcase_38 AC 45 ms
12,684 KB
testcase_39 AC 37 ms
11,884 KB
testcase_40 AC 67 ms
15,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def calc(s, r, n):
    sho = r // n
    amari = r % n

    for i in range(n):
        ans[i] += sho * s
    for i in range(1, amari + 1):
        ans[i] += s


l, r, n = map(int, input().split())
ans = [0] * n

calc(1, r, n)
calc(-1, l - 1, n)

print("\n".join(map(str, ans)))
0