문제 풀이 import java.util.*;public class CompanyMember { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Map map = new HashMap(); for (int i = 0; i remainingPeople = new ArrayList(map.keySet()); Collections.sort(remainingPeople, Collections.reverseOrder()); for (String name : remainingPeople) { ..