Accepted solution

136A - Presents.

Open original problem
Source code

#include<vector>

#include<string>

#include<math.h>

#include<map>

#include<algorithm>

/***** S. M. Sabiul Hajjaj Sabit *****/

using namespace std;

template <typename T>long long int power(T a, T b)

{

    long long int pow=1;

    for(int i=0; i<b; i++)

    {

        pow *= a;

    }

    return pow;

}

///*********Write Code From Here*********///

int main()

{

    int n;

    cin>>n;

    int arr[n];

    for(int i=0; i<n; i++)

    {

        int t;

        cin>>t;

        arr[t-1]=i+1;

    }

    for(int i=0; i<n; i++)

    {

        cout<<arr[i]<<" ";

    }

}
Join the discussion

Add your comment