#P1925. 最大划分乘积
最大划分乘积
Description
Let be a positive integer and let be split into equal parts, , so that .
Let be the product of these parts, .
For example, if is split into five equal parts, , then .
Let for a given value of .
It turns out that the maximum for is found by splitting eleven into four equal parts which leads to ; that is, , which is a terminating decimal.
However, for the maximum is achieved by splitting it into three equal parts, so , which is a non-terminating decimal.
Let if is a non-terminating decimal and if is a terminating decimal.
Input Format
Input a positive integer .
Output Format
Output the value of .
10
-15
100
2438
京公网安备 11011102002149号