문제https://www.acmicpc.net/problem/9935 해설괄호문제에서 조건이 추가된 문제로 해석하면 된다.stack을 사용하여 가장 상단의 값을 빼와 만족할때만 pop()하도록 설정 코드1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677#include iostream>#include algorithm>#include stack> using namespace std; string line, boom, ret;stackpairchar, int>> s;int boom_len; void g..