Java135 [백준/Java] 34798번 Missed Alarm -Codeimport java.util.Scanner;public class BOJ34798 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] alarm = sc.next().split(":"); String[] wakeup = sc.next().split(":"); int alarmHour = Integer.parseInt(alarm[0]) * 60; int alarmMin = Integer.parseInt(alarm[1]); int wakeupHour = Integer.parseInt(wakeup[0]) * 60;.. 2025. 12. 4. [백준/Java] 34813번 공통교육과정 -Codeimport java.util.Scanner;public class BOJ34813 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String subNum = sc.next(); char first = subNum.charAt(0); System.out.println(getSubName(first)); } // 과목 이름 반환 private static String getSubName(char firstChar) { switch (firstChar) { case 'F': return "Foundat.. 2025. 12. 3. [백준/Java] 29734번 집에선 안돼잉 -Codeimport java.util.Scanner;public class BOJ29734 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long m = sc.nextLong(); int t = sc.nextInt(); int s = sc.nextInt(); long zipSleepCnt = (n - 1) / 8; long dokSleepCnt = (m - 1) / 8; long totalZipTime = n + (zipSleepCnt * s); /.. 2025. 12. 2. [백준/Java] 23292번 코딩 바이오리듬 -Codeimport java.util.Scanner;public class BOJ23292 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String birthday = sc.next(); int t = sc.nextInt(); int maxBio = -1; String res = ""; for (int i = 0; i maxBio) { maxBio = nowBio; res = codingDay; } else if (nowBio == maxBio) { .. 2025. 11. 30. [백준/Java] 34849번 이중 반복문 -Codeimport java.util.Scanner;public class BOJ34849 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(n 2025. 11. 30. [백준/Java] 34795번 An Elephant Problem -Codeimport java.util.Scanner;public class BOJ34795 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double m = sc.nextInt(); double d = sc.nextInt(); int res = (int) Math.ceil(d / m); System.out.println(res); }} 2025. 11. 28. 이전 1 2 3 4 ··· 23 다음