본문 바로가기

Java444

[백준/Java] 2563번 색종이 -Codeimport java.io.*;import java.util.*;public class BOJ2563 { static int[][] paper; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); paper = new int[101][101]; for (int i = 0; i 2025. 12. 20.
[백준/Java] 10798번 세로읽기 -Codeimport java.util.Scanner;public class BOJ10798 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] lines = new String[5]; for (int i = 0; i col) { answer.append(now.charAt(col)); } } } System.out.println(answer); }} 2025. 12. 20.
[백준/Java] 2566번 최댓값 -Codeimport java.io.*;import java.util.*;public class BOJ2566 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // 배열 입력값으로 초기화 int[][] arr = new int[9][9]; for (int row = 0; row maxVal) { maxVal = now; resRow = row + 1; .. 2025. 12. 20.
[백준/Java] 2738번 행렬 덧셈 -Codeimport java.io.*;import java.util.*;public class BOJ2738 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader( new InputStreamReader(System.in) ); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken()); int m = Integer.parseInt(st.nextToken()); .. 2025. 12. 20.
[백준/Java] 25206번 너의 평점은 -Codeimport java.util.Scanner;public class BOJ25206 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double totalScore = 0; double total = 0; for (int i = 0; i 2025. 12. 20.
[백준/Java] 1316번 그룹 단어 체커 -Codeimport java.util.ArrayList;import java.util.List;import java.util.Scanner;public class BOJ1316 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int answer = 0; for (int i = 0; i alpa = new ArrayList(); boolean flag = true; for (char ch : str.toCharArray()) { // 리스트에 해당 문.. 2025. 12. 20.