Cod sursa(job #3297641)
Utilizator | Data | 23 mai 2025 10:24:42 | |
---|---|---|---|
Problema | Schi | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.43 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream f("schi.in");
ofstream g("schi.out");
void nos()
{
ios_base::sync_with_stdio(false);
f.tie(NULL);
}
vector<int> poz;
int main()
{
nos();
int n,x;
poz.push_back(0);
f>>n;
for(int i=1;i<=n;i++)
{
f>>x;
poz.insert(poz.begin()+x,i);
}
for(int i=1;i<=n;i++)
g<<poz[i]<<'\n';
return 0;
}