자바스택 썸네일형 리스트형 1102 : 스택 (stack) import java.util.Scanner; public class Main { static int stack[] = new int [101]; static int pos; public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); int n, i, j; String arr = null; int number[] = new int [101]; n = scan.nextInt(); for (i = 0; i < n; i++) { arr = scan.next(); if (arr.charAt(0) == 'i') { int num = scan.nextInt(); push.. 더보기 이전 1 다음