Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
一点建议刚开始想复杂了。。 其实要去掉括号就有两种情况; 1,对应的()中‘(’前面不是‘-’号; 2,对应的()中只有一个字母; 这两种情况,考虑到,就okay了; 关键是找出对应的();可以用dfs,也可以碰到‘)’时找出前面没有匹配过的‘)’;然后记录对应‘)’的下标; Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator