#include <iostream>
#include <cmath>
using namespace std;
int main() {
int n, z, big;
bool tag = false;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> z;
if (sqrt(z) == int(sqrt(z))) {
tag = true;
big = max(z, big);
}
}
if (tag = true) {
cout << (sqrt(big));
} else {
cout << "Not found";
}
}
全部回复 共 0 条
还没有人回复。往下写第一条。
发表回复
登录后即可回复本帖,与出题人和同学一起讨论。
登录