Cod sursa(job #3271889)
| Utilizator | Data | 27 ianuarie 2025 18:35:15 | |
|---|---|---|---|
| Problema | Schi | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.46 kb |
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("fast-math")
#include <bits/stdc++.h>
using namespace std;
const int dim = 3e4 + 55;
int n, x, poz;
ifstream fin("schi.in");
ofstream fout("schi.out");
vector<int>v;
int32_t main()
{
fin >> n;
for(int i = 1; i <= n; ++i)
{
fin >> x;
v.insert(v.begin() + x - 1, i);
}
for(auto it: v)
fout << it << '\n';
return 0;
}
