Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- int main() {
- /* Enter your code here. Read input from STDIN. Print output to STDOUT */
- int n = 0, index=0;
- scanf("%d", &n);
- vector <int> arr(n); // Create a hash table to store the value
- for(int i=0; i<n;i++){
- scanf("%d", &index);
- arr[index - 1] = i;
- }
- for(int x=0; x<n; x++){
- cout << arr[arr[x]] + 1 << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement