Bob is practicing square root decomposition!
The problem Bob is doing involves breaking a number
He currently has
The data guarantee that one candidate will be closer than the other.
Constraints
Input Specification
The first line will contain
The second line will contain
The third and final line will contain
Output Specification
On one line, output 1
if 2
if
Sample Input 1
Copy
9
3
4
Sample Output 1
Copy
1
Sample Input 2
Copy
16
5
3
Sample Output 2
Copy
2
Comments
Possible spoiler, but I had tried to square the distances between N and i/j squared to find the positive distance, but that caused a WA .Since the distances are being compared and their actual value doesn't matter, why wouldn't this work?