您的位置:首页 > 其它

Coderforces Presents

2017-06-15 11:11 274 查看
http://codeforces.com/problemset/problem/136/A

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Presents {

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
Map<Integer, Integer> map = new HashMap<>();
for(int i = 1; i <= n; i++) {
int temp = scanner.nextInt();
map.put(temp, i);
}
for(int i = 1; i < n; i++) {
int temp = map.get(i);
System.out.print(temp+" ");
}
System.out.println(map.get(n));
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: