boj 2309 java
-
boj)2309 - 일곱 난쟁이PS/boj 2020. 9. 21. 19:11
import java.io.*; import java.util.Arrays; public class boj_2309 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static int[] a = new int[9]; static int sum; public static void main(String[] args) throws IOException { for (int i = 0; i < 9; i++) { a[i] = Integer.parseInt(br.readLine()); sum += a[i]; } Arrays.sort(a); for (int i = 0; i < 9; i++) { for (int j = i..