PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#GL0000218. Thử thách đếm ước của tích ba số (Number Challenge)
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Thử thách đếm ước của tích ba số (Number Challenge)
Thử thách đếm ước của tích ba số (Number Challenge)
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem Statement
Let denote the number of positive divisors of . Given integers , calculate
$$\sum_{i=1}^{a}\sum_{j=1}^{b}\sum_{k=1}^{c}d(ijk)\pmod{2^{30}}.$$The modulus is exactly .
Input
One line contains .
Output
Print one integer in .
Subtasks
-
Subtask 1 (20 points): .
-
Subtask 2 (30 points): .
-
Subtask 3 (50 points): .
Examples
Example 1
Input
2 2 2
Output
20
Explanation
The eight divisor counts sum to 20.
Example 2
Input
4 4 4
Output
328
Explanation
Summing all 64 divisor counts gives 328.
Example 3
Input
10 10 10
Output
11536
Explanation
Summing the 1000 divisor counts gives 11536.