luogu#P9231. [蓝桥杯 2023 省 A] 平方差
[蓝桥杯 2023 省 A] 平方差
Problem Description
Given , ask how many integers with satisfy that there exist integers such that .
Input Format
Input one line containing two integers , separated by one space.
Output Format
Output one line containing one integer: the number of that satisfy the condition in the problem statement.
1 5
4
Hint
Sample Explanation
Constraints
For of the testdata, .
For all testdata, .
The 14th Lanqiao Cup Software Competition, Provincial Contest, C/C++ Undergraduate Group A, Problem C.
Translated by ChatGPT 5