43112023-03-23 11:32:20gittyKéséscpp17Wrong answer 0/504ms4572 KiB
#include <bits/stdc++.h>
#include <iostream>
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/03ms1812 KiB
2Wrong answer0/03ms2064 KiB
3Wrong answer0/52ms2212 KiB
4Wrong answer0/53ms2484 KiB
5Wrong answer0/52ms2568 KiB
6Wrong answer0/53ms2712 KiB
7Wrong answer0/43ms2944 KiB
8Wrong answer0/43ms3296 KiB
9Wrong answer0/43ms3532 KiB
10Wrong answer0/43ms3680 KiB
11Wrong answer0/43ms3888 KiB
12Wrong answer0/23ms4096 KiB
13Wrong answer0/23ms4104 KiB
14Wrong answer0/13ms4112 KiB
15Wrong answer0/13ms4440 KiB
16Wrong answer0/14ms4456 KiB
17Wrong answer0/13ms4360 KiB
18Wrong answer0/13ms4344 KiB
19Wrong answer0/13ms4572 KiB