sorting8 백준 11004 ▶11004번 문제 - K번째 수 ▶풀이방법 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)); StringTokenizer st; int[] arr = new int[2]; st = new StringTokenizer(br.readLine(), " "); arr[0] = Intege.. 2022. 3. 23. 백준 11652 ▶11652번 문제 - 좌표 정렬하기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()); long[] arr = new long[count]; for(int i = 0; i < count; i++.. 2022. 3. 23. 백준 10989 ▶10989번문제 - 수 정렬하기 ▶풀이방법 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]; for(int i = 0; i < count; i++) { .. 2022. 3. 23. 백준 10825 ▶10825번 문제 - 국영수 ▶풀이방법 import java.io.*; import java.util.*; class student implements Comparable{ String name; int kor; int eng; int math; student(String name, int kor, int eng, int math){ this.name = name; this.kor = kor; this.eng = eng; this.math = math; } @Override public int compareTo(student s) { //비교 // TODO Auto-generated method stub if(this.kor == s.kor) { if(this.eng == s.eng) { if(this.. 2022. 3. 23. 이전 1 2 다음