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
本文共 276 字,大约阅读时间需要 1 分钟。
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