#6548. #C. # 阶乘
#C. # 阶乘
当前没有测试数据。
Description
There are n positive integers , and let their product be p. You can multiply p by a positive integer q, so that is exactly the factorial of the positive integer m, and find the minimum value of m.
Input format
Two lines in total. The first line contains a positive integer n. The second line contains n positive integers .
Output format
There is one positive integer m in a row.
Example
1
6
3
Data scale and agreement
For 10% of the data,
For 30% of the data,
For 100% of the data,
Time limit:
Space limit: 256MB