문제 문제해결 import java.io.*; import java.util.Stack; public class B17299 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); //입력받기 int n = Integer.parseInt(br.readLine()); String[] input = br.readLine().split(" "); int[] arr = new int[n]; f..