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 |
Re:水题In Reply To:这题怎么解 Posted by:kea_IV at 2012-03-29 21:05:52 把为配对的左括号计数,然后遇到右括号的时候左括号就配对一个,如果没有可以配对的,那么这个右括号是一定需要修改的,这样一直到最后未配对的左括号数只需要修改一半即可完成配对 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator