Java464 [백준/Java] 1535번 안녕 -Codeimport java.io.*;import java.util.*;public class BOJ1535 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int cnt = Integer.parseInt(br.readLine()); // 감소 체력 셋팅 int[] hp = new int[cnt + 1]; StringTokenizer st = new StringTokenizer(br.readLine()); for (int i = 1.. 2026. 1. 20. [백준/Java] 1446번 지름길 -Codeimport java.io.*;import java.util.*;public class BOJ1446 { static class Shortcut { int next, dist; public Shortcut (int next, int dist) { this.next = next; this.dist = dist; } } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringToken.. 2026. 1. 20. [백준/Java] 1309번 동물원 -Codeimport java.util.Scanner;public class BOJ1309 { static int[] dp = new int[100001]; static { dp[1] = 3; dp[2] = 7; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 3; i 1 2 3일때 값은 구했으나 점화식을 못세워서 힌트보고 풀어서 아쉬웠습니다. 2026. 1. 20. [백준/Java] 18221번 교수님 저는 취업할래요 -Codeimport java.io.*;import java.util.*;public class BOJ18221 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[][] classroom = new int[n][n]; int profRow = 0, profCol = 0; int sungRow = 0, sungCol = 0; for.. 2026. 1. 20. [백준/Java] 7662번 이중 우선순위 큐 -Codeimport java.io.*;import java.util.*;public class BOJ7662 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int testCase = Integer.parseInt(br.readLine()); for (int t = 0; t treeMap = new TreeMap(); int commCnt = Integer.parseInt(br.readLine()); .. 2026. 1. 19. [백준/Java] 1931번 회의실 배정 -Codeimport java.io.*;import java.util.*;public class BOJ1931 { static class MeetingTime { int start, end; public MeetingTime (int start, int end) { this.start = start; this.end = end; } } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); .. 2026. 1. 19. 이전 1 ··· 7 8 9 10 11 12 13 ··· 78 다음