정답 개수:
50
틀린 개수:
11
실행 실패 개수:
39
3 3 2 1
NO
+ + + - - -
4 3 2 1 4
NO
+ + + - - - + -
5 4 5 3 2 1
NO
+ + + + - + - - - -
2 2 1
런타임 에러 (RTE)
stderr:
Exception in thread "main" java.lang.NumberFormatException: Cannot parse null string at java.base/java.lang.Integer.parseInt(Integer.java:630) at java.base/java.lang.Integer.parseInt(Integer.java:786) at Main.read(Main.java:30) at Main.main(Main.java:23)
+ + - -
2 1 2
런타임 에러 (RTE)
stderr:
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Deque.peekLast()" is null at Main.main(Main.java:21)
+ - + -
4 1 4 2 3
런타임 에러 (RTE)
stderr:
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Deque.peekLast()" is null at Main.main(Main.java:21)
NO