43102023-03-23 11:30:51gittyKéséscpp17Wrong answer 0/504ms3464 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    //ifstream cin("in.txt");
    int n;
    cin>>n;
    set<int> b;
    int x;
    for(int i = 1; i<=n; i++)
    {
        cin>>x;
        if(b.count(x))
        {
            cout<<i;
            break;
        }
        else b.insert(x);
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Accepted0/03ms1808 KiB
2Wrong answer0/03ms2072 KiB
3Wrong answer0/53ms2264 KiB
4Wrong answer0/52ms2332 KiB
5Wrong answer0/52ms2540 KiB
6Wrong answer0/53ms2756 KiB
7Wrong answer0/43ms3104 KiB
8Wrong answer0/43ms3244 KiB
9Wrong answer0/43ms3032 KiB
10Wrong answer0/43ms3116 KiB
11Wrong answer0/43ms3204 KiB
12Wrong answer0/23ms3196 KiB
13Wrong answer0/23ms3344 KiB
14Wrong answer0/13ms3308 KiB
15Wrong answer0/13ms3308 KiB
16Wrong answer0/14ms3456 KiB
17Wrong answer0/13ms3356 KiB
18Wrong answer0/13ms3448 KiB
19Wrong answer0/13ms3464 KiB