후위표기식은 늘 stack을 사용하여 풀이한다. a = input() stack = [] #스택 res='' #출력 for x in a: if x.isalpha(): #피연산자인지 아닌지 확인 res+=x else: if x == '(': stack.append(x) elif x == '*' or x =='/': while stack and (stack[-1]=='*' or stack[-1]=='/'): res+=stack.pop() stack.append(x) elif x == '+' or x == '-': while stack and stack[-1] != '(': res += stack.pop() stack.append(x) elif x == ')': while stack and stack[-1] ..