Leetcode 367. Valid Perfect Square

class Solution(object):
    def isPerfectSquare(self, num):
        """
        :type num: int
        :rtype: bool
        """
        for x in range(1000000):
            if x*x==num:
                return True
        return False
        
原文地址:https://www.cnblogs.com/zywscq/p/10556326.html