목록Algorithm (58)
개발일기
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class baekjoon2108 { public static void main(String[] args) throws IOException{ int []numberArr = new int[8001]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int sum = 0,max = Integer.MIN_VALUE,min = Integer.MAX_VALUE; for(int i..
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Scanner; public class Baekjoon25305 { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int k = scanner.nextInt(); ArrayList arr= new ArrayList(); for(int i=0;i