結果

問題 No.836 じょうよ
ユーザー URechaRechaURechaRecha
提出日時 2019-09-06 14:54:08
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 490 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 10,872 KB
実行使用メモリ 15,644 KB
最終ジャッジ日時 2023-09-06 03:23:04
合計ジャッジ時間 3,485 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
13,536 KB
testcase_01 AC 17 ms
8,180 KB
testcase_02 AC 16 ms
8,212 KB
testcase_03 AC 16 ms
8,152 KB
testcase_04 AC 16 ms
8,144 KB
testcase_05 AC 16 ms
8,156 KB
testcase_06 AC 17 ms
8,148 KB
testcase_07 AC 16 ms
8,160 KB
testcase_08 AC 16 ms
8,124 KB
testcase_09 AC 17 ms
8,168 KB
testcase_10 AC 16 ms
8,236 KB
testcase_11 AC 21 ms
8,552 KB
testcase_12 AC 24 ms
8,708 KB
testcase_13 AC 21 ms
8,740 KB
testcase_14 AC 17 ms
8,428 KB
testcase_15 AC 23 ms
8,588 KB
testcase_16 AC 82 ms
12,300 KB
testcase_17 AC 73 ms
11,492 KB
testcase_18 AC 21 ms
8,520 KB
testcase_19 AC 27 ms
8,768 KB
testcase_20 AC 52 ms
10,672 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

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)):
            if k-j !=0:print(k-j)
    else:
        for s in joyo(r):
            if k-j !=0:print(s)
main()
0