Cod sursa(job #3134689)

Utilizator PopaBiancaPopa Bianca Daniela PopaBianca Data 30 mai 2023 12:58:40
Problema Schi Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.4 kb
#include <bits/stdc++.h>

using namespace std;

ifstream fin ("schi.in");
ofstream fout ("schi.out");

int const nMax = 100005;

int x, y, n, k, op;

vector <int> aint;

int main()
{
    fin >> n;
   // aint.resize(n);


    for(int i = 1; i <= n; i++){
        fin >> x;
        aint.insert(aint.begin()+x-1, i);
    }

    for(int i = 0; i < n;i++){
        fout << aint[i] << "\n";
    }

   

    return 0;
}