#GL0000189. Số ước của tích các số lớn (Divisors)
Bài tập thuộc lộ trình
Mục lục đề ⌄
Số ước của tích các số lớn (Divisors)
Divisors
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem Statement
You are given positive integers . Each is guaranteed to have between 3 and 5 distinct positive divisors, inclusive. Let
Compute the number of positive divisors of modulo . You receive the actual integers , not prime-factorization lines used internally for Codeforces hacks.
Input
The first line contains . Each of the next lines contains one integer .
Output
Print the number of positive divisors of modulo .
Subtasks
The guarantee that each number has 3–5 divisors applies to every subtask.
-
Subtask 1 (20 points): , ; every has 3–5 positive divisors.
-
Subtask 2 (30 points): , ; every has 3–5 positive divisors.
-
Subtask 3 (50 points): , ; every has 3–5 positive divisors.
Examples
Example 1
Input
3
9
15
143
Output
32
Explanation
The prime factorization of is , giving divisors.
Example 2
Input
1
7400840699802997
Output
4
Explanation
The input number is a product of distinct primes and , so it has four divisors.
Example 3
Input
3
4
8
16
Output
10
Explanation
The product has ten positive divisors.