Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
276 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int n, t, num, max = -1;
    cin >> n;
    for (int i = 0;i < n;i++) {
        cin >> t;
        if (t > max) {
            max = t;
        }
        num = i + 1;
    }
  
    cout << num << "\n";
}
Leave a Comment