lkjdsalkj;sadusaioasdjoihsfadjoihhkusduhjds

余晓洁老牧师 · 发布于 2026-02-04 · 浏览 213 回复 0
#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 条

还没有人回复。往下写第一条。

发表回复