#FACTMUL. Product of factorials
Product of factorials
You need to find the product of first n factorials 1! * 2! * ... * n! modulo 109546051211.
Input
One integer n (1 <= n <= 10000000)
Output
The answer.
Example
Input: 5</p>Output: 34560
You need to find the product of first n factorials 1! * 2! * ... * n! modulo 109546051211.
One integer n (1 <= n <= 10000000)
The answer.
Input: 5</p>Output: 34560
注册一个 CZOJ 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。