# 读取输入的正整数 n = int(input()) # 计算平方根并向下取整 import math result = math.isqrt(n) # 对于Python 3.8及以上版本 # 或者使用以下方法(兼容更早版本) # result = int(math.sqrt(n)) # 输出结果 print(result)
# 读取输入的正整数 n = int(input()) # 计算平方根并向下取整 import math result = math.isqrt(n) # 对于Python 3.8及以上版本 # 或者使用以下方法(兼容更早版本) # result = int(math.sqrt(n)) # 输出结果 print(result)