結果
問題 |
No.836 じょうよ
|
ユーザー |
![]() |
提出日時 | 2019-09-03 17:47:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 20,224 KB |
最終ジャッジ日時 | 2024-12-24 08:06:07 |
合計ジャッジ時間 | 3,803 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 23 |
ソースコード
def func(l:int, r:int, n:int, ini=True,ans=None): if ini: a = r//n ans =[a for _ in range(n)] else: ans[0] -=r//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))