x = int(input())
low, high, ans = 0, x, -1
while low <= high:
mid = (low + high) // 2
if mid * mid <= x:
ans = mid
low = mid + 1
else:
high = mid - 1
print(ans)
The fourth line, please low+high,low Since it is 0, Why not omit , I tried , After omitting the computer loop . What principle? ?