1868. Ambitious number

单点时限: 2.0 sec

内存限制: 256 MB

We call a number ambitious number if it’s the smallest number that is divisible by all the integers between 1 and N, inclusive, and output it modulo 987654321.

输入格式

There are many test case.Each test case include one interger N(1<=N<=500000)

输出格式

Output the ambitious number.

样例

Input
1
3
Output
1
6
Hint:
case 2:The smallest number divisible by 1, 2 and 3 is just 1 * 2 * 3.

6 人解决,53 人已尝试。

9 份提交通过,共有 153 份提交。

8.9 EMB 奖励。

创建: 16 年,5 月前.

修改: 7 年,1 月前.

最后提交: 3 年,10 月前.

来源: N/A

题目标签