Problems > Count the Divisors

Count the Divisors

Difficulty: 1300 3000 ms 128 MB

math number-theory

How many positive divisors does N have?

Input: one integer N.

Output: the number of divisors.

Constraints:

  • 1 ≤ N ≤ 1012

Sample Tests

Input 1
12
Output 1
6
Input 2
97
Output 2
2

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.