본문 바로가기

자바27

[DAY53] 99클럽 코딩테스트 JAVA 백준 맥주 축제 17503번 17503번: 맥주 축제 🌕 최종코드import java.io.*;import java.util.*;public class Main { static int N, M, K; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); N = Integer.parseInt(st.nextToken()); M = Integer.parseInt(st.nextToken()); .. 2025. 2. 12.
[DAY51] 99클럽 코딩테스트 JAVA 백준 치킨 배달 15686번 https://www.acmicpc.net/problem/15686 🌕최종코드 import java.io.*;import java.util.*;public class Main{ static int N,M,arr[][]; static boolean visit[]; static int result = Integer.MAX_VALUE; static List home = new ArrayList(); static List chicken = new ArrayList(); public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStrea.. 2025. 2. 7.
[DAY50] 99클럽 코딩테스트 JAVA 백준 오목 2615번 https://www.acmicpc.net/problem/2615 🌕 최종코드import java.io.*;import java.util.*;public class Main { static int[][] map = new int[21][21]; static int[][][] memo = new int[21][21][4]; static int[] dx = { 1, 1, 0, -1 }; static int[] dy = { 0, 1, 1, 1 }; static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws IOException { BufferedReader br = new Buf.. 2025. 2. 6.
[DAY49] 99클럽 코딩테스트 JAVA 백준 부등호 2529번 https://www.acmicpc.net/problem/2529 🌕 최종코드import java.io.*;import java.util.*; public class Main { static int n; static boolean[] visited; static String[] arr; static List list = new ArrayList(); static void dfs(String num, int idx) { if(idx == n+1) { list.add(num); return; } for(int j = 0 ; j ")) { if(a b) return false; } return true; } public static void main(String[] args) .. 2025. 2. 5.
[DAY48] 99클럽 코딩테스트 JAVA 백준 숫자 정사각형 1051번 https://www.acmicpc.net/problem/1051 🌕 최종코드import java.io.*;import java.util.*; public class Main { static int N,M, ans=Integer.MIN_VALUE; static int[][] map; public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); N = Integer.parseInt.. 2025. 2. 4.
[DAY47] 99클럽 코딩테스트 JAVA 백준 빙산 2573번 1018번: 체스판 다시 칠하기  🌕 최종코드import java.io.*;public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String NM_str = br.readLine(); int N = Integer.parseInt(NM_str.split(" ")[0]); int M = Intege.. 2025. 2. 3.