Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
239 B
0
Indexable
Never

#include <iostream>

using namespace std;
int main()
{
	int n, t, max=-1, num;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> t;
		if (t > max) {
			max = t;
			num = i;
		}
	}

	cout << endl << num + 1 << endl;
}
Leave a Comment