본문 바로가기

코딩 문제 풀이52

[백준] 자바 문제 풀이 1043 : 골드4 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws Exception { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer str = new StringTokenizer(br.readLine(), " "); int n = Integer.parseInt(str.nextToken()); int p .. 2023. 9. 19.
[백준] 자바 문제 풀이 1374 : 골드5 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.PriorityQueue; public class Main { public static class Lecture implements Comparable { long start; long end; public Lecture(int start, int end) { this.start = start; this.end = end; } @Override public int compareTo(Lecture lec) { return lec.start start ? -1 : 0.. 2023. 9. 19.
[백준] 자바 문제 풀이 14891 : 골드5 import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[][] nlist = new int[4][8]; String s1 = br.readLine(); String s2 = br.readLine(); String s3 = br.readLine(); String s4 = br.readLine(); for (in.. 2023. 9. 19.
[백준] 자바 문제 풀이 14503 : 골드5 import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] s = br.readLine().split(" "); int n = Integer.parseInt(s[0]); int m = Integer.parseInt(s[1]); s = br.readLine().split(" "); int r = Integ.. 2023. 9. 19.
728x90
반응형