#abc254d. D - Together Square
D - Together Square
Score : points
问题描述
给定一个整数 。找出满足以下条件的正整数对 的数量,其中 和 均不大于 :
- 是一个完全平方数。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given an integer . Find the number of pairs of positive integers at most that satisfy the following condition:
- is a square number.
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
6
The six pairs satisfy the condition.
On the other hand, does not, since is not a square number.
Sample Input 2
254
Sample Output 2
896
update @ 2024/3/10 10:49:33