Created
July 24, 2018 12:25
-
-
Save mingyu-lee/87de1bc9688e42be84d261f255687de5 to your computer and use it in GitHub Desktop.
BOJ_2750_OrderAscN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package boj; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
public class OrderAscN { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int numberOfInput = Integer.parseInt(sc.nextLine()); | |
int[] numbers = new int[numberOfInput]; | |
for (int i = 0; i < numberOfInput; i++) { | |
numbers[i] = Integer.parseInt(sc.nextLine()); | |
} | |
Arrays.sort(numbers); | |
for (int num : numbers) { | |
System.out.println(num); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
문제 풀이 소감 :
정렬 알고리즘에 대해 공부할 필요가 있다. Arrays.sort를 이용했으나 그 안에 실제로 어떻게 작동하는지 이해가 필요하다.
체감 난이도 :
보통
어려웠던 점 :
정렬을 어떻게 할 것인가?
앞으로 필요할 것 같은 공부 :
정렬 알고리즘 공부 및 Arrays.sort 구현에 대한 공부