문제 풀이 import java.util.*; class Solution { public int[] solution(int[] weights, String[] head2head) { int[] answer = new int[weights.length]; List list = new ArrayList(); for(int i=0; i