C - Factors of Factorial
Editorial
/


Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 点
問題文
整数 が与えられます。 の正の約数の個数を で割った余りを求めてください。
制約
入力
入力は以下の形式で標準入力から与えられる。
出力
の正の約数の個数を で割った余りを出力せよ。
入力例 1Copy
Copy
3
出力例 1Copy
Copy
4
です。 の正の約数は の 個なので、 を出力します。
入力例 2Copy
Copy
6
出力例 2Copy
Copy
30
入力例 3Copy
Copy
1000
出力例 3Copy
Copy
972926972
Score : points
Problem Statement
You are given an integer . Find the number of the positive divisors of , modulo .
Constraints
Input
The input is given from Standard Input in the following format:
Output
Print the number of the positive divisors of , modulo .
Sample Input 1Copy
Copy
3
Sample Output 1Copy
Copy
4
There are four divisors of : , , and . Thus, the output should be .
Sample Input 2Copy
Copy
6
Sample Output 2Copy
Copy
30
Sample Input 3Copy
Copy
1000
Sample Output 3Copy
Copy
972926972