Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std;
- pair <int,int> v[1005];
- int main()
- {
- int i,n;
- cin>>n;
- for(i=1;i<=n;i++)
- {
- cin>>v[i].first;
- v[i].second=i;
- }
- sort(v+1,v+n+1);
- for(i=1;i<=n;i++)
- {
- cout<<v[i].second<<" ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement