题目地址:力扣
代码:
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
import math
return int(math.sqrt(x))
题目地址:力扣
代码:
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
import math
return int(math.sqrt(x))