정답 개수:
0
틀린 개수:
5
실행 실패 개수:
5
A/(B)
A [] [] / [] ['A'] ( ['/'] ['A'] B ['/', '('] ['A'] ) ['/', '('] ['A', 'B'] ) ['/'] ['A', 'B'] AB/
AB/
(A)-(B)
( [] [] A ['('] [] ) ['('] ['A'] - [] ['A'] ( ['-'] ['A'] B ['-', '('] ['A'] ) ['-', '('] ['A', 'B'] ) ['-'] ['A', 'B'] AB-
AB-
(A)/((B)/C)
( [] [] A ['('] [] ) ['('] ['A'] / [] ['A'] ( ['/'] ['A'] ( ['/', '('] ['A'] B ['/', '(', '('] ['A'] ) ['/', '(', '('] ['A', 'B'] / ['/', '('] ['A', 'B'] C ['/', '(', '/'] ['A', 'B'] ) ['/', '(', '/'] ['A', 'B', 'C'] ) ['/'] ['A', 'B', 'C', '/'] ABC//
ABC//
A*(B)*C
런타임 에러 (RTE)
stderr:
Traceback (most recent call last): File "/tmp/compile/784c58815b12a59b1505229cbe6cea32e3cc98adf0e48064bbb584552ae38d40/Main.py", line 18, in <module> while stack and a != "(" and stack[-1] != "(" and rank[stack[-1] >= rank[a]]: TypeError: '>=' not supported between instances of 'str' and 'int'
AB*C*
A/(B)-C/D
런타임 에러 (RTE)
stderr:
Traceback (most recent call last): File "/tmp/compile/784c58815b12a59b1505229cbe6cea32e3cc98adf0e48064bbb584552ae38d40/Main.py", line 18, in <module> while stack and a != "(" and stack[-1] != "(" and rank[stack[-1] >= rank[a]]: TypeError: '>=' not supported between instances of 'str' and 'int'
AB/CD/-
(A)/B-((C)-D)
런타임 에러 (RTE)
stderr:
Traceback (most recent call last): File "/tmp/compile/784c58815b12a59b1505229cbe6cea32e3cc98adf0e48064bbb584552ae38d40/Main.py", line 18, in <module> while stack and a != "(" and stack[-1] != "(" and rank[stack[-1] >= rank[a]]: TypeError: '>=' not supported between instances of 'str' and 'int'
AB/CD--