Cod sursa(job #3259840)

Utilizator postolachepostolache postolache Data 28 noiembrie 2024 09:11:22
Problema Schi Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.67 kb
/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main()
{
    ifstream cin ("schi.in");
    ofstream cout ("schi.out");
    
    int n , k;
    cin >> n;
    for(int i=0;i < n;i ++){
        cin >> k;
        v.insert(v.begin() + k - 1, i);
    }
    for(int i =0;i < n;i ++)cout << v[i] + 1<< "\n";
    return 0;
}