205452026-01-07 17:46:34mikloshunorKéséscpp17Wrong answer 0/50224ms8756 KiB
#include <iostream>
#include <map>
using namespace std;

int main()
{
    int n;
    cin >> n;
    map <int,int> m;
    int x;
    for (int i = 0; i < n; i++)
    {
        cin >> x;
        m[x] = i;
    }
    int lk = 200001;
    for (auto x : m)
    {
        if (x.second < lk)
        {
            lk = x.second;
        }
    }
    cout << lk;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/02ms316 KiB
2Wrong answer0/012ms564 KiB
3Wrong answer0/52ms508 KiB
4Wrong answer0/52ms316 KiB
5Wrong answer0/568ms500 KiB
6Wrong answer0/568ms444 KiB
7Wrong answer0/4157ms6316 KiB
8Wrong answer0/4163ms6024 KiB
9Wrong answer0/4160ms5216 KiB
10Wrong answer0/4143ms4656 KiB
11Wrong answer0/4144ms3964 KiB
12Wrong answer0/2167ms4404 KiB
13Wrong answer0/2206ms8756 KiB
14Wrong answer0/1219ms8500 KiB
15Wrong answer0/1224ms8464 KiB
16Wrong answer0/1187ms6804 KiB
17Wrong answer0/1172ms4660 KiB
18Wrong answer0/1128ms820 KiB
19Wrong answer0/1123ms564 KiB