結果

問題 No.836 じょうよ
ユーザー GrayCoderGrayCoder
提出日時 2019-06-14 22:16:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 347 bytes
コンパイル時間 1,030 ms
コンパイル使用メモリ 10,780 KB
実行使用メモリ 15,524 KB
最終ジャッジ日時 2023-08-09 01:19:57
合計ジャッジ時間 4,040 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
9,972 KB
testcase_01 AC 15 ms
7,716 KB
testcase_02 AC 15 ms
7,808 KB
testcase_03 AC 15 ms
7,852 KB
testcase_04 AC 15 ms
7,768 KB
testcase_05 AC 15 ms
7,860 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 15 ms
7,768 KB
testcase_08 AC 14 ms
7,744 KB
testcase_09 AC 15 ms
7,772 KB
testcase_10 AC 14 ms
7,764 KB
testcase_11 AC 19 ms
8,432 KB
testcase_12 AC 22 ms
8,544 KB
testcase_13 AC 19 ms
8,296 KB
testcase_14 AC 15 ms
8,304 KB
testcase_15 AC 21 ms
8,536 KB
testcase_16 AC 62 ms
11,640 KB
testcase_17 AC 56 ms
9,500 KB
testcase_18 AC 19 ms
8,452 KB
testcase_19 AC 22 ms
8,332 KB
testcase_20 AC 41 ms
10,328 KB
testcase_21 AC 17 ms
8,124 KB
testcase_22 AC 33 ms
8,652 KB
testcase_23 AC 54 ms
9,516 KB
testcase_24 AC 17 ms
8,580 KB
testcase_25 AC 27 ms
8,720 KB
testcase_26 AC 16 ms
7,952 KB
testcase_27 AC 17 ms
8,156 KB
testcase_28 AC 20 ms
8,792 KB
testcase_29 AC 17 ms
8,292 KB
testcase_30 AC 16 ms
8,220 KB
testcase_31 AC 21 ms
8,824 KB
testcase_32 AC 19 ms
8,476 KB
testcase_33 AC 16 ms
8,224 KB
testcase_34 AC 19 ms
8,484 KB
testcase_35 AC 21 ms
8,760 KB
testcase_36 AC 40 ms
9,792 KB
testcase_37 AC 38 ms
9,620 KB
testcase_38 AC 53 ms
11,848 KB
testcase_39 AC 42 ms
9,728 KB
testcase_40 AC 80 ms
15,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

def main():
    L, R, N = map(int, input().split())

    d, m = divmod(R, N)
    r = [d] * N
    for i in range(1, m + 1):
        r[i] += 1

    d, m = divmod(L - 1, N)
    l = [d] * N
    for i in range(1, m + 1):
        l[i] += 1

    for i, j in zip(l, r):
        print(j - i)

input = lambda: stdin.readline()
main()
0