Skip to content

Commit 10840f3

Browse files
authored
136A
1 parent 8e7c018 commit 10840f3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Presents.cpp

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include <iostream>
2+
#include <vector>
3+
using namespace std;
4+
int main()
5+
{
6+
int n, p;
7+
cin >> n;
8+
vector<int> f(n+1);
9+
for (int i = 1; i <= n; ++i)
10+
{
11+
cin >> p;
12+
f[p] = i;
13+
}
14+
cout << f[1];
15+
for (int i = 2; i <= n; ++i)
16+
{
17+
cout << " " << f[i];
18+
}
19+
cout << endl;
20+
return 0;
21+
}

0 commit comments

Comments
 (0)