Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 웹프로그래밍
- 부스트코스
- 농은면접
- HTML
- 프로그래머스
- java
- 인강
- 정수내림차순으로배치하기
- 건보필기
- 필기
- BOJ
- 백준
- 웹개발
- Linux
- 웹
- 중소기업면접
- 연결요소의개수
- 한국재정정보원
- 공부
- CSS
- algorithm
- 후기
- 프로그래밍언어
- 수박수박수박수박수?
- 이클립스
- 확인문제
- 코딩
- 필기후기
- 알고리즘
- 프로그래밍
Archives
- Today
- Total
공부하는 히욤이
1966. 숫자를 정렬하자 본문
SW Expert 1966. 숫자를 정렬하자
* 문제의 저작권은 SW Expert에 있습니다
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 | import java.util.Arrays; import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); for (int test_case = 1; test_case <= t; test_case++) { int n = sc.nextInt(); int[] arr = new int[n] ; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } Arrays.sort(arr); System.out.print("#" + test_case +" "); for (int i = 0; i < arr.length; i++) { System.out.print(arr[i]+" "); } } } } | cs |
'Algorithm > SW Expert Academy' 카테고리의 다른 글
1206. [S/W 문제해결 기본] 1일차 - View (0) | 2019.02.21 |
---|---|
1204. [S/W 문제해결 기본] 1일차 - 최빈수 구하기 (0) | 2019.02.20 |
1945. 간단한 소인수분해 (0) | 2019.01.25 |
1284. 수도 요금 경쟁 (0) | 2019.01.24 |
1989. 초심자의 회문 검사 (0) | 2019.01.23 |