You are viewing a single comment's thread. Return to all comments →
easy and simple solution
for(int x = 1; x <= n; x++){ for(int y = 1; y <= n; y++){ if(p[p[y]] == x) printf("%d\n",y); } }
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 →
easy and simple solution