#abc292c. C - Four Variables
C - Four Variables
Score : points
问题描述
给定一个正整数 。
找出满足条件 的正整数四元组 的数量。
在本问题的约束条件下,可以证明答案最多为 。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a positive integer .
Find the number of quadruples of positive integers such that .
Under the constraints of this problem, it can be proved that the answer is at most .
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
4
Sample Output 1
8
Here are the eight desired quadruples.
Sample Input 2
292
Sample Output 2
10886
Sample Input 3
19876
Sample Output 3
2219958
update @ 2024/3/10 12:10:44