Cod sursa(job #2755199)
Utilizator | Data | 26 mai 2021 21:10:08 | |
---|---|---|---|
Problema | Schi | Scor | 55 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <fstream>
#include <vector>
using namespace std;
int main()
{
ifstream f("schi.in");
ofstream g("schi.out");
int n, index;
f >> n;
vector <int> v(n + 1);
for(int i = 1; i <= n; ++i){
f >> index;
v.insert(v.begin() + index, i);
}
for(int i = 1; i <= n; ++i)
g << v[i] << "\n";
return 0;
}