소소한개발팁
article thumbnail
반응형
출처 :  https://www.acmicpc.net/problem/2750

 

1. Problem

 

2. Code

<java />
import java.io.*; import java.util.Arrays; 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[] nList = new int[N]; for (int i = 0; i < nList.length; i++) nList[i] = Integer.parseInt(br.readLine()); Arrays.sort(nList); for (int val : nList) { System.out.println(val); } } }
반응형
profile

소소한개발팁

@개발자 뱅

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!