-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNo_2750.java
More file actions
30 lines (23 loc) · 741 Bytes
/
No_2750.java
File metadata and controls
30 lines (23 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
Problem_2750_수 정렬하기
https://www.acmicpc.net/problem/2750
*/
import java.io.*;
import java.util.Arrays;
public class No_2750 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int[] ar = new int[Integer.parseInt(br.readLine())];
for (int i = 0; i < ar.length; i++) {
ar[i] = Integer.parseInt(br.readLine());
}
Arrays.sort(ar);
for (int i = 0; i < ar.length; i++) {
bw.append(ar[i] + "\n");
}
bw.flush();
bw.close();
br.close();
}
}