본문 바로가기

Java718

[백준/Java] 28939번 Шкаф для обуви -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class BOJ28939 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); StringTokenizer st = new StringTokenizer(br.rea.. 2025. 10. 24.
[백준/Java] 34429번 Late Larry -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class BOJ34429 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); String[] time = line[0].split(":"); String d = line[1]; int late .. 2025. 10. 23.
[백준/Java] 34450번 Partial Transmission -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class BOJ34450 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int p = Integer.parseInt(br.readLine()); .. 2025. 10. 22.
[백준/Java] 34426번 CDOT Pathfinder -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class BOJ34426 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // 전체 구간 수 int n = Integer.parseInt(br.readLine()); for (int i = 0; i 2025. 10. 21.
[백준/Java] 34416번 Follow The Prize -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class BOJ34416 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); int p = Integer.pars.. 2025. 10. 20.
[백준/Java] 34384번 Hard Rocks and Atomic Clocks -Codeimport java.util.Scanner;public class BOJ34384 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int time = sc.nextInt(); int isPassed = time % 3600; int remain = 3600 - isPassed; int sleepMin = (int) Math.ceil(remain / 60.0); System.out.println(sleepMin); }} 2025. 10. 19.