코딩테스트411 [BOJ] 9012 괄호 - JAVA 1. 풀이 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stack; public class BOJ_9012_괄호 { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseInt(in.readLine()); Stack stack; StringBuilder sb = new StringBuilder(); while(T-->0){ stack .. 코딩테스트/BOJ 2022. 2. 5. [BOJ] 10772 제로 - JAVA 1. 풀이 1) Stream사용 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stack; public class BOJ_10773_제로 { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int K = Integer.parseInt(in.readLine()); Stack stack = new Stack(); while(K-->0){ int num = Integer.p.. 코딩테스트/BOJ 2022. 2. 5. [BOJ] 10828 스택 - JAVA 1. 풀이 1) java.util.Stack 사용 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stack; import java.util.StringTokenizer; public class BOJ_10828_스택 { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(in.readLine()); Stack stack = ne.. 코딩테스트/BOJ 2022. 2. 5. 이전 1 ··· 32 33 34 35 다음