본문 바로가기

sorting8

백준 10814 ▶10814문제 - 나이순 정렬 ▶풀이방법 - 배열 사용 풀이방법1 import java.io.*; import java.util.*; public class J_10814 { 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 count = Integer.parseInt(br.readLine()); String[][] arr = new String[count][2]; for(i.. 2022. 3. 22.
백준 11651 ▶11651문제 - 좌표 정렬하기2 ▶풀이방법 import java.io.*; import java.util.*; 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 count = Integer.parseInt(br.readLine()); //입력받을 개수 입력 int[][] arr = new int[count][2]; for(int i = 0;.. 2022. 3. 22.
백준 11650 ▶11650문제 - 좌표 정렬하기 ▶ 풀이 과정 import java.io.*; import java.util.*; 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 count = Integer.parseInt(br.readLine());//입력받을 횟수 int[][] arr = new int[count][count]; for(int i = .. 2022. 3. 22.
백준 2751 ▶2751번 문제 - 수 정렬하기 ▶풀이방법 - 배열 사용 import java.io.*; import java.util.*; 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 count = Integer.parseInt(br.readLine()); //입력받을 횟수 입력 int[] arr = new int[count]; //값 저장할 배열 생.. 2022. 3. 22.