import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Main {
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 n = Integer.parseInt(br.readLine());
List<Integer> list = new ArrayList<>();
for(int i=0; i<n; i++){
list.add(Integer.parseInt(br.readLine()));
}
Collections.sort(list);
for(int i=0; i<list.size(); i++){
bw.write(list.get(i) + "\n");
}
bw.flush();
br.close();
bw.close();
}
}
'Coding Test > 백준' 카테고리의 다른 글
[백준/자바] 1427 - 소트인사이드 (0) | 2023.06.05 |
---|---|
[백준/자바] 1377 - 버블 소트 (0) | 2023.06.05 |
[백준/자바] 11286 - 절댓값 힙 (0) | 2023.06.04 |
[백준/자바] 17298 - 오큰수 (0) | 2023.06.04 |
[백준/자바] 1874 - 스택 수열 (0) | 2023.06.04 |