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 |
用括号贪心s和t分开来存,分别排序后用2个指针从头到尾指一下,看做多的左括号为多少就可以了。 真的好多trick, 可能s>t,记得要(++t)>>1,如果某时刻所指的s和t相同,一定先做s,然后更新后再做t。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator