65652023-12-12 07:32:36Huni136Késéscpp17Accepted 50/50196ms20552 KiB
#include <iostream>
#include<map>
using namespace std;
map<int,int> ora;
int main()
{
    int n,x;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>x;
        ora[x]=i;
    }

    int mini=200001;
    for(auto it: ora)
    {
        if(it.second<mini)
        {
            mini=it.second;
        }
    }

    cout<<mini;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/03ms1748 KiB
2Accepted0/013ms2780 KiB
3Accepted5/53ms2228 KiB
4Accepted5/53ms2440 KiB
5Accepted5/568ms2716 KiB
6Accepted5/568ms2800 KiB
7Accepted4/4175ms14628 KiB
8Accepted4/4149ms14808 KiB
9Accepted4/4144ms13476 KiB
10Accepted4/4142ms12468 KiB
11Accepted4/4138ms11004 KiB
12Accepted2/2162ms11496 KiB
13Accepted2/2192ms20552 KiB
14Accepted1/1190ms20168 KiB
15Accepted1/1196ms19732 KiB
16Accepted1/1182ms16600 KiB
17Accepted1/1166ms12364 KiB
18Accepted1/1126ms4552 KiB
19Accepted1/1120ms3908 KiB