You are viewing a single comment's thread. Return to all comments →
Very nice :) Different approach makes it much more easier.
Mine
using namespace std; int main() { int n; cin >> n; vector<int> a(n); for(int i=0;i<n;i++) { cin >> a[i]; } for(int i=1;i<=n;i++) { cout << find(a.begin(),a.end(),find(a.begin(),a.end(),i) - a.begin() +1) - a.begin() +1 << endl; } return 0;
Seems like cookies are disabled on this browser, please enable them to open this website
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
Very nice :) Different approach makes it much more easier.
Mine