Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
193 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main() {
	int n, a, max = 0;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		cin >> a;
		if (a >= max) {
			max = a;
		}
	}
	cout << max;
}