소소한개발팁
반응형
article thumbnail
[정렬]10989번 수 정렬하기3
알고리즘/백준 2023. 6. 14. 23:27

출처 : https://www.acmicpc.net/problem/10989 Problem Code import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int[] Nl = new int[N]; for (int i = 0; i < N; i++) Nl[i] = Integer.parseInt(br.readLine()); Arrays.sort(Nl); ..

반응형