Cod sursa(job #873426)

Utilizator lucianRRuscanu Lucian lucianR Data 7 februarie 2013 11:05:47
Problema Schi Scor 45
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.42 kb
#include <fstream>
#include <vector>

using namespace std;

vector <int> chestie(30000);
int n;
ifstream in("schi.in");
ofstream out("schi.out");

int main()
{
    in>>n;
    for(int i=0; i<n; i++)
    {
        int temp;
        in>>temp;
        chestie.insert(chestie.begin()+temp,i);
    }

    for (int j=1; j<=n; j++)
        out<<chestie[j]+1<<"\n";
    in.close();
    out.close();

    return 0;
}