結果

問題 No.836 じょうよ
ユーザー URechaRechaURechaRecha
提出日時 2019-09-06 15:00:05
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 103 ms / 1,000 ms
コード長 466 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 11,000 KB
実行使用メモリ 15,960 KB
最終ジャッジ日時 2023-09-06 03:30:51
合計ジャッジ時間 3,378 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
13,532 KB
testcase_01 AC 16 ms
8,284 KB
testcase_02 AC 15 ms
8,292 KB
testcase_03 AC 15 ms
8,136 KB
testcase_04 AC 15 ms
8,156 KB
testcase_05 AC 16 ms
8,248 KB
testcase_06 AC 15 ms
8,136 KB
testcase_07 AC 15 ms
8,268 KB
testcase_08 AC 15 ms
8,336 KB
testcase_09 AC 15 ms
8,140 KB
testcase_10 AC 15 ms
8,272 KB
testcase_11 AC 21 ms
8,648 KB
testcase_12 AC 22 ms
8,784 KB
testcase_13 AC 20 ms
8,612 KB
testcase_14 AC 16 ms
8,344 KB
testcase_15 AC 22 ms
8,588 KB
testcase_16 AC 76 ms
12,136 KB
testcase_17 AC 66 ms
11,596 KB
testcase_18 AC 20 ms
8,560 KB
testcase_19 AC 25 ms
8,876 KB
testcase_20 AC 48 ms
10,760 KB
testcase_21 AC 17 ms
8,328 KB
testcase_22 AC 37 ms
9,188 KB
testcase_23 AC 62 ms
9,768 KB
testcase_24 AC 20 ms
8,636 KB
testcase_25 AC 34 ms
8,808 KB
testcase_26 AC 18 ms
8,372 KB
testcase_27 AC 18 ms
8,688 KB
testcase_28 AC 23 ms
9,064 KB
testcase_29 AC 19 ms
8,616 KB
testcase_30 AC 17 ms
8,416 KB
testcase_31 AC 22 ms
9,144 KB
testcase_32 AC 21 ms
9,032 KB
testcase_33 AC 17 ms
8,412 KB
testcase_34 AC 20 ms
8,932 KB
testcase_35 AC 22 ms
9,036 KB
testcase_36 AC 50 ms
11,792 KB
testcase_37 AC 50 ms
11,596 KB
testcase_38 AC 67 ms
13,136 KB
testcase_39 AC 51 ms
12,368 KB
testcase_40 AC 103 ms
15,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import zip_longest
def main():
    l,r,n = map(int,input().split())
    def joyo(num,res=None):
        """1~numの間を剰余の個数で分ける"""
        res=[num//n for _ in range(n)]
        if num % n !=0:
            for i in range(1,num%n+1):
                res[i] +=1
        return res
    if l > 1:
        for j,k in zip_longest(joyo(l-1),joyo(r)):
            print(k-j)
    else:
        for s in joyo(r):
            print(s)
main()
0