백준 자바 8958번1 [백준/JAVA] 8958번 OX퀴즈 import java.util.Scanner;import java.util.Stack; public class Main {public static void main(String args[]) {Scanner in = new Scanner(System.in);int input = in.nextInt();String insert;Stack st = new Stack();int getSum = 0;int tempt = 1;for (int i = 0; i < input; i++) {insert = in.next();String[] arr = insert.split("");for (int j = 0; j < arr.length; j++) {st.add(arr[j]);}for (int j = 0; j < arr.l.. 2020. 7. 23. 이전 1 다음