initial commit
This commit is contained in:
parent
34a2cc2f4f
commit
f989fa0cbe
33
136A Presents/136A.cpp
Normal file
33
136A Presents/136A.cpp
Normal file
@ -0,0 +1,33 @@
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
using ll = long long;
|
||||
|
||||
|
||||
void solve()
|
||||
{
|
||||
map<int,int>m;
|
||||
int n;
|
||||
cin>>n;
|
||||
for(int i=1; i<=n; ++i)
|
||||
{
|
||||
int x;
|
||||
cin>>x;
|
||||
m[x]=i;
|
||||
}
|
||||
for(auto it: m)
|
||||
{
|
||||
cout<<it.second<<" ";
|
||||
}
|
||||
cout<<endl;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
ios_base::sync_with_stdio(false);
|
||||
cin.tie(nullptr);
|
||||
|
||||
int TC = 1;
|
||||
//cin >> TC;
|
||||
//cin.ignore();
|
||||
while (TC--) solve();
|
||||
}
|
Loading…
Reference in New Issue
Block a user