Java717 [백준/Java] 12518번 Centauri Prime (Small2) -Codeimport java.util.Scanner;public class BOJ12518 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int t = 1; t 2025. 11. 9. [백준/Java] 31866번 손가락 게임 -Codeimport java.util.Scanner;public class BOJ31866 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int jun = sc.nextInt(); int ik = sc.nextInt(); System.out.println(whoWins(jun, ik)); } public static String whoWins(int h1, int h2) { boolean junValid = checkFinger(h1); boolean ikValid = checkFinger(h2); // .. 2025. 11. 8. [백준/Java] 17026번 Shell Game -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.Arrays;import java.util.StringTokenizer;public class BOJ17027 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n =.. 2025. 11. 7. [백준/Java] 34666번 가희와 일본 문화 -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class BOJ34666 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nex.. 2025. 11. 6. [백준/Java] 34665번 가희와 교통 요금 -Codeimport java.util.Scanner;public class BOJ34665 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.nextLine(); String b = sc.nextLine(); System.out.println(a.equals(b) ? 0 : 1550); }} 2025. 11. 5. [백준/Java] 29538번 Взлет -Codeimport java.util.Scanner;public class BOJ29538 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int n = sc.nextInt(); int a = sc.nextInt(); for(int i = 0; i = 1000) { System.out.println("Impossible"); } else { // 아닌경우 비율 추출해서 출력 double radio = a / 1000.0; .. 2025. 11. 4. 이전 1 ··· 105 106 107 108 109 110 111 ··· 120 다음