Skip to content

Commit

Permalink
Feat:Add solution of #118
Browse files Browse the repository at this point in the history
  • Loading branch information
sa11k committed Jul 29, 2022
1 parent 7f385d0 commit c28be7d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/BaekJoon/sa11k/10989/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import java.io.*;
import java.util.*;

class Main {

public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int N = Integer.parseInt(br.readLine());
int[] num = new int[N];

for(int i = 0; i<N; i++){
num[i] = Integer.parseInt(br.readLine());
}

Arrays.sort(num);

for(int i = 0; i<N; i++){
sb.append(num[i]).append("\n");
}

System.out.println(sb);
br.close();
}
}

0 comments on commit c28be7d

Please sign in to comment.