121082024-12-02 15:20:20mártonágnesKéséscpp11Wrong answer 0/50219ms8704 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int N, x;
    cout << "N="; cin >> N;
    map <int, int> E;
    for (int i=1; i<=N; i++)
    {
        cin>>x;
        E[x]=i;
    }
    int mini=INT_MAX;
    map <int, int> :: iterator y;
    for (y=E.begin(); y!=E.end(); y++)
    {
        if (y->second<mini) mini=y->second;
    }
    cout << mini;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms320 KiB
2Wrong answer0/010ms568 KiB
3Wrong answer0/51ms320 KiB
4Wrong answer0/51ms320 KiB
5Wrong answer0/564ms320 KiB
6Wrong answer0/564ms628 KiB
7Wrong answer0/4156ms6188 KiB
8Wrong answer0/4152ms5916 KiB
9Wrong answer0/4152ms5176 KiB
10Wrong answer0/4143ms4664 KiB
11Wrong answer0/4138ms3884 KiB
12Wrong answer0/2165ms4408 KiB
13Wrong answer0/2197ms8704 KiB
14Wrong answer0/1219ms8608 KiB
15Wrong answer0/1214ms8504 KiB
16Wrong answer0/1193ms6712 KiB
17Wrong answer0/1180ms4664 KiB
18Wrong answer0/1123ms808 KiB
19Wrong answer0/1118ms568 KiB