結果

問題 No.836 じょうよ
ユーザー URechaRecha
提出日時 2019-09-03 18:02:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 28,032 KB
最終ジャッジ日時 2024-12-24 08:51:14
合計ジャッジ時間 4,152 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
def func(l:int, r:int, n:int, ini=True,ans=None):
    if ini:
        a = Decimal(r)//Decimal(n)
        ans =[a for _ in range(n)]
    else:
        ans[0] -=Decimal(r)//Decimal(n)
    for i in range(r%n):
        if ini:
            ans[i+1] +=1
        else:
            ans[i+1] -=1
    if l > 1:
        return func(1,l-1,n,False,ans)
    else:
        return "\n".join(map(str,ans))

l,r,n=map(int,input().split())
print(func(l,r,n))
0