結果

問題 No.836 じょうよ
ユーザー URechaRechaURechaRecha
提出日時 2019-09-06 15:01:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 101 ms / 1,000 ms
コード長 424 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 15,936 KB
最終ジャッジ日時 2023-09-06 03:32:09
合計ジャッジ時間 3,104 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
13,628 KB
testcase_01 AC 15 ms
7,888 KB
testcase_02 AC 15 ms
7,860 KB
testcase_03 AC 15 ms
7,812 KB
testcase_04 AC 15 ms
7,756 KB
testcase_05 AC 15 ms
7,872 KB
testcase_06 AC 14 ms
7,884 KB
testcase_07 AC 15 ms
7,832 KB
testcase_08 AC 15 ms
7,836 KB
testcase_09 AC 14 ms
7,936 KB
testcase_10 AC 15 ms
7,792 KB
testcase_11 AC 20 ms
8,636 KB
testcase_12 AC 23 ms
8,752 KB
testcase_13 AC 20 ms
8,636 KB
testcase_14 AC 16 ms
8,312 KB
testcase_15 AC 22 ms
8,696 KB
testcase_16 AC 75 ms
12,432 KB
testcase_17 AC 67 ms
11,604 KB
testcase_18 AC 19 ms
8,580 KB
testcase_19 AC 25 ms
8,800 KB
testcase_20 AC 48 ms
10,536 KB
testcase_21 AC 17 ms
8,300 KB
testcase_22 AC 36 ms
9,000 KB
testcase_23 AC 59 ms
9,644 KB
testcase_24 AC 19 ms
8,620 KB
testcase_25 AC 31 ms
8,952 KB
testcase_26 AC 16 ms
8,244 KB
testcase_27 AC 17 ms
8,320 KB
testcase_28 AC 22 ms
9,204 KB
testcase_29 AC 18 ms
8,640 KB
testcase_30 AC 17 ms
8,312 KB
testcase_31 AC 22 ms
9,068 KB
testcase_32 AC 21 ms
9,020 KB
testcase_33 AC 16 ms
8,376 KB
testcase_34 AC 21 ms
8,924 KB
testcase_35 AC 22 ms
8,972 KB
testcase_36 AC 50 ms
11,660 KB
testcase_37 AC 47 ms
11,688 KB
testcase_38 AC 66 ms
13,164 KB
testcase_39 AC 49 ms
12,260 KB
testcase_40 AC 101 ms
15,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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(joyo(l-1),joyo(r)):
            print(k-j)
    else:
        for s in joyo(r):
            print(s)
main()
0