문제 확인하기
import java.io.*;
import java.util.*;
import java.util.stream.*;
class Result {
public static List<Integer> permutationEquation(List<Integer> p) {
List<Integer> indices = new ArrayList<>();
for (int i = 1; i <= p.size(); i++) {
indices.add(p.indexOf(i) + 1);
}
List<Integer> ans = new ArrayList<>();
for (int ele : indices) {
ans.add(p.indexOf(ele) + 1);
}
return ans;
}
}
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
int n = Integer.parseInt(bufferedReader.readLine().trim());
List<Integer> p = Stream.of(bufferedReader.readLine().replaceAll("\\s+$", "").split(" "))
.map(Integer::parseInt)
.collect(Collectors.toList());
List<Integer> result = Result.permutationEquation(p);
bufferedWriter.write(
result.stream()
.map(Object::toString)
.collect(Collectors.joining("\n"))
+ "\n"
);
bufferedReader.close();
bufferedWriter.close();
}
}