You are viewing a single comment's thread. Return to all comments →
using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { var length = int.Parse(Console.ReadLine()); var result = new int[length+1]; var line = Console.ReadLine().Split(' '); for (var i = 0; i < length ; i++) { Console.WriteLine(line[int.Parse(line[i]) - 1]); } } }
Seems like cookies are disabled on this browser, please enable them to open this website
Security Permutations
You are viewing a single comment's thread. Return to all comments →