#abc227c. C - ABC conjecture
C - ABC conjecture
Score : points
问题描述
你已知一个正整数 。
找出满足条件 且 的正整数三元组 的数量。
约束条件保证答案小于 。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a positive integer .
Find the number of triples of positive integers such that and .
The Constraints guarantee that the answer is less than .
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
4
Sample Output 1
5
There are five such triples: .
Sample Input 2
100
Sample Output 2
323
Sample Input 3
100000000000
Sample Output 3
5745290566750
update @ 2024/3/10 09:57:04
相关
在下列比赛中: