Problem Solving/Baekjoon1338 [백준] 14916 거스름돈 - Greedy / Java • 문제 링크https://www.acmicpc.net/problem/14916 • 풀이 코드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)); bw.write(String.valueOf(count(read()))); bw.flush(); } private static.. 2024. 6. 10. [백준] 23854 The Battle of Giants - Greedy / Java • 문제 링크https://www.acmicpc.net/problem/23854 • 풀이 코드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 a = read(), b = read(); .. 2024. 6. 9. [백준] 25305 커트라인 - Implementation / Java • 문제 링크https://www.acmicpc.net/problem/25305 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;import java.util.Arrays;public class Main { public static void main(String[] args) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int[] arr = new int[read()]; int k = read(); .. 2024. 6. 8. [백준] 10811 바구니 뒤집기 - Implementation / Java • 문제 링크https://www.acmicpc.net/problem/10811 • 풀이 코드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[] arr = new int[read() + 1]; .. 2024. 6. 7. [백준] 5800 성적 통계 - Implementation / Java • 문제 링크https://www.acmicpc.net/problem/5800 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;import java.util.Arrays;public class Main { public static void main(String[] args) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringBuilder sb = new StringBuilder(); int k = read.. 2024. 6. 6. [백준] 1244 스위치 켜고 끄기 - Implementation / Java • 문제 링크https://www.acmicpc.net/problem/1244 • 풀이 코드import java.io.BufferedWriter;import java.io.IOException;import java.io.OutputStreamWriter;public class Main { static boolean[] arr; public static void main(String[] args) throws IOException { BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringBuilder sb = new StringBuilder(); arr = new b.. 2024. 6. 5. 이전 1 ··· 92 93 94 95 96 97 98 ··· 223 다음