import java.util.LinkedHashMap; import java.util.Map; import java.util.Scanner; // 参考了:https://blog.nowcoder.net/n/6eb9f37c83e94cf89df0c97bc7398355?f=comment public class Main { public static void main(String[] args) { Map<String, Integer> map = new LinkedHashMap<>(); ...