atcoder#ABC254D. [ABC254D] Together Square
[ABC254D] Together Square
Score : points
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.
4
6
The six pairs satisfy the condition.
On the other hand, does not, since is not a square number.
254
896