字节3.15笔试第一题,百思不得其解的bug,终于做出来了 import java.util.*; import java.util.Map.Entry; public class Main { public static void main(String[] args) { Scanner sc =new Scanner(System.in); int n = sc.nextInt(); String cup = sc.nextLine(); Map<String,List<String>> map = new HashMap<...