[JAVA] Programmers 소수 만들기 ☑
·
Programmers/java
푼 답안 import java.util.*; class Solution { public static int solution(int[] nums) { ArrayList sumNum = new ArrayList(); ArrayList total = new ArrayList(); int answer = 0; int count = 0; for(int i = 0; i < nums.length; i++){ for(int j = i+1; j < nums.length; j++){ for(int k = j+1; k < nums.length; k++){ sumNum.add(nums[i] + nums[j] + nums[k]); } } } for(int i = 0; i < sumNum.size(); i++){ count = ..