본문 바로가기

전체 글3791

[백준/Java] 20920번 영단어 암기는 괴로워 - Codeimport java.io.*;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 wordCnt = Integer.parseInt(st.nextToken()); int standardLength = Integer.parseInt(st.nextTo.. 2026. 2. 16.
[백준/Java] 10431번 줄세우기 -Codeimport java.io.*;import java.util.*;public class BOJ10431 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int testCase = Integer.parseInt(br.readLine()); for (int test = 0; test nowChild) { targetIdx = j; break; .. 2026. 2. 16.
[백준/Java] 6693번 Complicated Route -Codeimport java.io.*;public class BOJ6693 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String input = br.readLine(); if (input.equals("END")) { break; } String[] moveList = input.replace(".", "").spli.. 2026. 2. 16.
[백준/Java] 16967번 배열 복원하기 -Codeimport java.io.*;import java.util.*;public class Main { static int height; static int width; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); height = Integer.parseInt(st.nextToken()); width = Intege.. 2026. 2. 15.
[백준/Java] 15803번 PLAYERJINAH’S BOTTLEGROUNDS -Codeimport java.io.*;import java.util.*;public class BOJ15803 { static class StartPos { int x, y; public StartPos(String pos) { String[] split = pos.split(" "); this.x = Integer.parseInt(split[0]); this.y = Integer.parseInt(split[1]); } } public static void main(String[] args) throws IOException { BufferedReader br = .. 2026. 2. 14.
[백준/Java] 4201번 Snakes and Ladders -Codeimport java.io.*;import java.util.*;public class BOJ4201 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int playerCnt = Integer.parseInt(st.nextToken()); int potalCnt = Integer.parseInt(st.nextToken()).. 2026. 2. 14.