题解 | 兔子的序列

兔子的序列

https://www.nowcoder.com/practice/55fc2ebad3fd444bbb1754ba1b259762

n = int(input())
a = list(map(int, input().split()))
max = 0
for i in a:
    x = i ** (1/2)
    if int(x) != x:
        if i > max:
            max = i
print(max)

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务