题解 | #兔子的序列#
兔子的序列
https://www.nowcoder.com/practice/55fc2ebad3fd444bbb1754ba1b259762
from math import sqrt len = int(input()) nums = map(int,input().split()) max = 0 for i in nums: if int(sqrt(i)) ** 2 != i: if max < i: max = i print(max)
兔子的序列
https://www.nowcoder.com/practice/55fc2ebad3fd444bbb1754ba1b259762
from math import sqrt len = int(input()) nums = map(int,input().split()) max = 0 for i in nums: if int(sqrt(i)) ** 2 != i: if max < i: max = i print(max)
相关推荐