ac

给岁月以文明,而不是给文明以岁月  •  1个月前


include <bits/stdc++.h>

using namespace std;

int main() {

int n, max = -999999;
cin >> n;
int a[n];
for (int i = 0; i < n; i++) {
	cin >> a[i];
}
for (int x = 0; x < n; x++) {
	if (a[x] > max) {
		max = a[x];
	}
}
cout << max;
return 0;

}


评论:

请先登录,才能进行评论