PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#GL0000200. Số ước của hệ số tổ hợp (Divisors)
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Số ước của hệ số tổ hợp (Divisors)
Số ước của hệ số tổ hợp (Divisors)
Source: Kattis
Version: Phuoc Hung OJ Extended
Problem Statement
Given integers , compute the exact number of distinct positive divisors of the binomial coefficient . The result fits in a signed 64-bit integer; do not take a modulus.
Input
One line with .
Output
Print the exact count of distinct positive divisors of .
Subtasks
-
Subtask 1 (20 points): .
-
Subtask 2 (30 points): .
-
Subtask 3 (50 points): .
Examples
Example 1
Input
5 1
Output
2
Explanation
The binomial coefficient has two positive divisors.
Example 2
Input
6 3
Output
6
Explanation
The coefficient has positive divisors.
Example 3
Input
10 4
Output
16
Explanation
The coefficient has sixteen positive divisors.