Cod sursa(job #3299260)

Utilizator DavidAA007Apostol David DavidAA007 Data 5 iunie 2025 10:11:38
Problema Schi Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.35 kb
#include<bits/stdc++.h>
using namespace std;
ifstream fin("schi.in");
ofstream fout("schi.out");
int main() {
    int n;
    fin >> n;
    vector <int> v;
    for (int i = 1; i <= n; i++)
    {
        int x;
        fin >> x;
        v.insert(v.begin() + x - 1, i);
    }
    for (auto i: v) {
        fout << i << "\n";
    }
    return 0;
}