프로그래머스 : 모의고사
import java.util.*; class Solution { static int h1[] ={1,2,3,4,5}; static int h2[] ={2,1,2,3,2,4,2,5}; static int h3[] ={3,3,1,1,2,2,4,4,5,5}; public int[] solution(int[] answers) { int answer[] = new int[3]; int h1Cnt = 0; int h2Cnt = 0; int h3Cnt = 0; int index = 0; for(int i=0;i i!=0).toArray(); } }