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 |
你的代码有问题哦!!!!路过的请回In Reply To:help,那位大牛帮忙看一下错在哪里了,编了很多测试数据都没问题 Posted by:decstery at 2006-03-29 21:26:03 试下如下数据: 5 3 1000 P 1 5 C 2 3 2 P 1 5 C 2 4 3 P 1 5 C 3 5 2 P 1 5 C 2 3 1 P 1 5 C 1 3 2 P 1 5 C 4 4 3 P 1 5 最后应该是2,但你的是3,原因是[4,5]下面的[4,4],[5,5]还是3,1,一旦更新[4,4] 答案就会计了[5,5]的1,导致出错。 对于这类更新的问题,不知有什么好方法解决? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator