112362024-07-26 12:24:37bzyLegcsalódottabb versenyző (75 pont)cpp14Wrong answer 30/7535ms1180 KiB
#include <bits/stdc++.h>

using namespace std;
int main()
{
	int n;
	cin>>n;
	vector<int> A;
	int mx = 0;
	for(int i = 0;i<n;i++){
		int a;
		cin>>a;
		A.push_back(a);
		mx = max(mx,a);
	}
	int pos = 0;
	for(int i = 0; i<n;i++){
		if(A[i] > A[pos] && A[i] < mx) pos = i;
	}
	cout<<pos+1<<endl;	
}
SubtaskSumTestVerdictTimeMemory
base30/75
1Accepted0/02ms356 KiB
2Wrong answer0/035ms992 KiB
3Wrong answer0/53ms628 KiB
4Accepted5/53ms396 KiB
5Accepted5/53ms376 KiB
6Wrong answer0/53ms504 KiB
7Accepted5/52ms376 KiB
8Accepted5/52ms504 KiB
9Wrong answer0/53ms376 KiB
10Wrong answer0/53ms384 KiB
11Wrong answer0/53ms504 KiB
12Wrong answer0/53ms376 KiB
13Accepted5/535ms844 KiB
14Accepted5/535ms1004 KiB
15Wrong answer0/535ms940 KiB
16Wrong answer0/535ms1180 KiB
17Wrong answer0/535ms1036 KiB