結果

問題 No.836 じょうよ
ユーザー calei
提出日時 2020-01-21 20:49:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 331 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 29,540 KB
最終ジャッジ日時 2024-07-06 05:18:38
合計ジャッジ時間 3,626 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.836 じょうよ 2020/01/21

from collections import Counter

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

res=[]
dic={}
for i in range(1,n+1):
    num=i%n
    res.append(num)
    dic[num]=dic.get(num,0)+1
d,m=divmod((r-l+1),n)

dic={k:v*d for k,v in dic.items()}

C=Counter(dic)
C.update(res[:m])

[print(C[i])for i in range(n)]
0