3857. Minimum Cost to Split into Ones
You are given an integer
n.In one operation, you may split an integer
xinto two positive integersaandbsuch thata + b = x.The cost of this operation is
a * b.Return an integer denoting the minimum total cost required to split the integer
nintonones.
1 | class Solution { |