結果

問題 No.836 じょうよ
ユーザー URechaRechaURechaRecha
提出日時 2019-09-03 17:47:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,924 KB
実行使用メモリ 19,400 KB
最終ジャッジ日時 2023-08-25 21:36:46
合計ジャッジ時間 4,116 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,992 KB
testcase_02 AC 15 ms
7,800 KB
testcase_03 AC 16 ms
7,788 KB
testcase_04 AC 16 ms
7,780 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 16 ms
7,800 KB
testcase_07 AC 15 ms
7,860 KB
testcase_08 AC 15 ms
7,888 KB
testcase_09 AC 15 ms
7,796 KB
testcase_10 AC 15 ms
7,836 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 49 ms
16,600 KB
testcase_17 AC 44 ms
15,680 KB
testcase_18 WA -
testcase_19 AC 21 ms
9,396 KB
testcase_20 WA -
testcase_21 AC 17 ms
8,348 KB
testcase_22 AC 24 ms
10,696 KB
testcase_23 AC 34 ms
14,248 KB
testcase_24 AC 17 ms
8,500 KB
testcase_25 AC 23 ms
10,144 KB
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 #

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))
0