큐1 [백준] 스택, 큐 문제들 (10828, 1406, 1966, 1158) 자동목차스택(10828)import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); StringBuilder sb = new StringBuilder(); Stack stack = new Stack(); while (n-- > 0) { String[] command = b.. 2024. 9. 25. 이전 1 다음