只做出了三道半,最后一道参考这个大佬的思路https://www.nowcoder.com/discuss/519845427500285952 第一题:小美的排列询问 直接用map public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<Integer,Integer> map = new HashMap<>(); for(int i = 1; i &l...