프로그래머스 - 모의고사
import java.util.*;class Solution { public int[] solution(int[] answers) { // 초기값 세팅 int [] first = {1,2,3,4,5}; int [] second = {2,1,2,3,2,4,2,5}; int [] third = {3,3,1,1,2,2,4,4,5,5}; int firstCount = 0; int secondCount = 0; int thirdCount = 0; for (int i=0; i savePot = new ArrayList(); max = Math.max(Math.max(firstCount,secondC..
더보기