题解 | #兔子的序列#
兔子的序列
https://www.nowcoder.com/practice/55fc2ebad3fd444bbb1754ba1b259762
#include <stdio.h>
#include <math.h>
int main() {
int a;
int max = 0;
scanf("%d",&a);
while(a--)
{
int b = 0;
scanf("%d",&b);
if(sqrt(b)-(int)sqrt(b) != 0)
{
max = max > b? max:b;
}
}
printf("%d",max);
return 0;
}
vivo公司福利 368人发布