Algorythms140 백준 10828풀이 (스택) import java.io.*; import java.sql.Array; import java.util.*; public class javapractice { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); // 선언 Stack stack = new Stack(); int n = Integer.parseInt(br.readLine()); for(int i = 0 ; i < n .. 2022. 2. 22. 백준 9012번 풀이 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Stack; public class baekjoon9021 { public static void main(String[]args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner sc = new Scanner(System.in); int n = Integer.parseInt(br.readLine()); Stack stack = ne.. 2022. 2. 22. 이전 1 ··· 21 22 23 24 다음