전체 글263 백준 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. 백준 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. 이전 1 ··· 32 33 34 35 36 37 38 ··· 66 다음