Número de divisores


Submit solution

Points: 10
Time limit: 5.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
C#, Go, Java

Dado un número, calcula la cantidad de divisores que tiene.

Input Format

Un número entero N

Constraints

0 <= N <= 10^9

Output Format

Un número indicando la cantidad de divisores

Sample Input 0

6

Sample Output 0

4

Explanation 0

El 6 es divisible por 1, 2, 3 y 6

Sample Input 1

12

Sample Output 1

6

Explanation 1

El 12 es divisible por 1, 2, 3, 4, 6 y 12

Sample Input 2

17

Sample Output 2

2

Explanation 2

El 17 es divisible por 1 y 17

Sample Input 3

0

Sample Output 3

0

Sample Input 4

1

Sample Output 4

1

Sample Input 5

2

Sample Output 5

2

Sample Input 6

60

Sample Output 6

12

Sample Input 7

5160

Sample Output 7

32

Sample Input 8

9985

Sample Output 8

4

Autoria: Rusben

CC BY-NC-SA 4.0