You are viewing a single comment's thread. Return to all comments →
My easy C solution
int main() { int n; scanf("%d", &n); int p; int v[51]; for(int i = 1; i <= n; i++) { scanf("%d", &p); v[p] = i; } for(int i = 1; i <= n; i++) { printf("%d\n", v[v[i]]); } 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 →
My easy C solution