#abc214b. B - How many?
B - How many?
Score : points
问题陈述
有多少组非负整数三元组 满足条件 且 ?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
How many triples of non-negative integers satisfy and ?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of triples of non-negative integers satisfying the conditions.
Sample Input 1
1 0
Sample Output 1
4
The triples satisfying the conditions are , , , and ― there are four of them.
Sample Input 2
2 5
Sample Output 2
10
Sample Input 3
10 10
Sample Output 3
213
Sample Input 4
30 100
Sample Output 4
2471
update @ 2024/3/10 09:31:04