#abc227g. G - Divisors of Binomial Coefficient
G - Divisors of Binomial Coefficient
Score : points
问题陈述
求一个二项式系数 的正除数的数量,模 。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Find the number, modulo , of positive divisors of a binomial coefficient .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
5 2
Sample Output 1
4
We have , which has four positive divisors: .
Sample Input 2
103 3
Sample Output 2
8
We have , which has eight positive divisors.
Sample Input 3
1000000000000 1000000
Sample Output 3
110520107
update @ 2024/3/10 09:57:36