학교 들어가기전에 공부좀 한다고 문제좀 푸는데
https://www.acmicpc.net/problem/2504

이거 어떻게 풀어가야되지? 대충 스택써야될것 같은데
방향을 못잡겠다.