79212024-01-12 07:13:36TundeKéséscpp17Time limit exceeded 10/50574ms3756 KiB
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    int t[n];
    for(int i=0; i<n; i++)
    {
        cin >> t[i];
        for(int j=0; j<i; j++)
        {
            if(t[i]==t[j])
                t[j]=0;
        }
    }
    int  x=0;
    for(int i=0; i<n && x==0; i++)
    {
        if(t[i]!=0)
        {
            x=i;
            cout << i+1;
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base10/50
1Accepted0/03ms2152 KiB
2Accepted0/0358ms2596 KiB
3Accepted5/54ms2196 KiB
4Accepted5/54ms2324 KiB
5Time limit exceeded0/5572ms2452 KiB
6Time limit exceeded0/5561ms2568 KiB
7Time limit exceeded0/4564ms2692 KiB
8Time limit exceeded0/4545ms2960 KiB
9Time limit exceeded0/4546ms3184 KiB
10Time limit exceeded0/4541ms3108 KiB
11Time limit exceeded0/4573ms3180 KiB
12Time limit exceeded0/2569ms3432 KiB
13Time limit exceeded0/2550ms3368 KiB
14Time limit exceeded0/1569ms3480 KiB
15Time limit exceeded0/1574ms3468 KiB
16Time limit exceeded0/1558ms3608 KiB
17Time limit exceeded0/1569ms3608 KiB
18Time limit exceeded0/1558ms3548 KiB
19Time limit exceeded0/1546ms3756 KiB