Inverse Permutation
The permutation P sends position i to value Pi. Print its inverse: the permutation Q with Q[Pi] = i.
Input: the first line has N; the second line has a permutation of 1..N.
Output: the inverse permutation.
Constraints:
- 1 ≤ N ≤ 105
Sample Tests
Input 1
4 2 4 1 3
Output 1
3 1 4 2
Input 2
1 1
Output 2
1
Discussion (opens after you solve — no spoilers before)
No comments yet.