Java446 [백준/Java] 24060번 알고리즘 수업 - 병합 정렬 1 -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class BOJ24060 { static int cnt = 0; static int m; static int answer = -1; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokeni.. 2025. 12. 27. [백준/Java] 25501번 재귀의 귀재 -Codeimport java.util.Scanner;public class BOJ25501 { static int cnt; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i = right) { return 1; } // 왼쪽 단어와 오른쪽 단어가 다르면 0 반환 if (str.charAt(left) != str.charAt(right)) { return 0; } // 왼쪽과 오른쪽을 중심으로 이동.. 2025. 12. 27. [백준/Java] 10870번 피보나치 수 5 -Codeimport java.util.Scanner;public class BOJ10870 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); System.out.println(fibo(n)); } private static long fibo(long n) { if (n 2025. 12. 27. [백준/Java] 27433번 팩토리얼 2 -Codeimport java.util.Scanner;public class BOJ27433 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(facto(n)); } private static long facto(int n) { if (n 2025. 12. 27. [백준/Java] 20920번 영단어 암기는 괴로워 -Codeimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.*;public class BOJ20920 { 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.ne.. 2025. 12. 27. [백준/Java] 26069번 붙임성 좋은 총총이 -Codeimport java.util.*;import java.io.*;public class BOJ26069 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); // set으로 중복 제거 Set dance = new HashSet(); dance.add("ChongChong"); for (int i = 0; i 2025. 12. 27. 이전 1 ··· 31 32 33 34 35 36 37 ··· 75 다음