Problem Solving/Baekjoon1336 [백준] 32371 샷건 - Brute Force / Java • 문제 링크https://www.acmicpc.net/problem/32371 • 풀이 코드import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.IOException;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.util.HashSet;import java.util.Set;public class Main { static char[][] mat = new char[4][10]; static Set set = new HashSet(); public static void main(String[] args) throws .. 2024. 12. 5. [백준] 15449 Art - Brute Force / Java • 문제 링크https://www.acmicpc.net/problem/15449 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;public class Main { public static void main(String[] args) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int[] arr = new int[5]; for (int i = 0; i c && b + c > a && c + a > b; .. 2024. 12. 4. [백준] 11680 Dice Cup - Brute Force / Java • 문제 링크https://www.acmicpc.net/problem/11680 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;public class Main { public static void main(String[] args) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringBuilder sb = new StringBuilder(); int n = read(), m = read(); .. 2024. 12. 3. [백준] 19751 Fractification - Brute Force / Java • 문제 링크https://www.acmicpc.net/problem/19751 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;public class Main { static double[] arr = new double[4], perm = new double[4], result; static boolean[] visit = new boolean[4]; static double min = Double.MAX_VALUE; public static void main(String[] args) throws IOException { BufferedWr.. 2024. 12. 2. [백준] 15429 Odd Gnome - Brute Force / Java • 문제 링크https://www.acmicpc.net/problem/15429 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;public class Main { public static void main(String[] args) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringBuilder sb = new StringBuilder(); int n = read(); while (n-- >.. 2024. 12. 1. [백준] 7782 Alien - Brute Force / Java • 문제 링크https://www.acmicpc.net/problem/7782 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;public class Main { public static void main(String[] args) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); boolean b = false; int n = read(), b1 = read(), b2 = read(); while (!.. 2024. 11. 30. 이전 1 ··· 62 63 64 65 66 67 68 ··· 223 다음