結果
問題 | No.836 じょうよ |
ユーザー | URechaRecha |
提出日時 | 2019-09-03 18:02:57 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 461 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 10,788 KB |
実行使用メモリ | 27,464 KB |
最終ジャッジ日時 | 2023-08-25 22:04:27 |
合計ジャッジ時間 | 3,579 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 21 ms
8,908 KB |
testcase_02 | AC | 20 ms
8,920 KB |
testcase_03 | AC | 20 ms
8,928 KB |
testcase_04 | AC | 21 ms
9,056 KB |
testcase_05 | AC | 20 ms
9,052 KB |
testcase_06 | AC | 21 ms
8,872 KB |
testcase_07 | AC | 20 ms
9,076 KB |
testcase_08 | AC | 22 ms
8,928 KB |
testcase_09 | AC | 20 ms
8,888 KB |
testcase_10 | AC | 21 ms
9,092 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 66 ms
21,424 KB |
testcase_17 | AC | 58 ms
20,736 KB |
testcase_18 | WA | - |
testcase_19 | AC | 26 ms
10,500 KB |
testcase_20 | WA | - |
testcase_21 | AC | 21 ms
9,360 KB |
testcase_22 | AC | 29 ms
11,668 KB |
testcase_23 | AC | 42 ms
15,860 KB |
testcase_24 | AC | 23 ms
9,732 KB |
testcase_25 | AC | 29 ms
12,128 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 | - |
ソースコード
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))