|시간 제한||메모리 제한||제출||정답||맞힌 사람||정답 비율|
|2 초||512 MB||139||127||112||93.333%|
At an annual Christmas party, the guests are expected to bring a gift and to put the gift under the Christmas tree. Each of the n guests is tagged with an integer (from 1 to n) and their gifts are identified with the same number.
At the end of the party, each of the guests take turns to draw a lot out of a bowl containing the numbers from 1 to n. Each guest then takes the gift corresponding to the number drawn from under the Christmas tree. You can assume that each guest brings and receives exactly one gift.
Since each guest is keen to know who received his/her gift, your job is to compile that list.
Your program must read from the standard input the following data. The first line specifies the number of guests n < 20,000. The integer corresponding to the gift picked by guest k, where 15k <n, is subsequently specified in the (k + 1)th line.
Your program must write a mapping from the guests to the recipients of their gifts to the standard output. The first line contains an integer indicating the recipient of the gift brought by guest 1. Similarly, the second line contains an integer indicating the recipient of the gift brought by guest 2, etc. The output should contain exactly n lines with one integer in each line, and each line is terminated by a newline character.
2 2 1
4 2 3 4 1
4 1 2 3