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:Re:两点疑问,希望有大牛解答下!小弟感激涕零 Posted by:cyb88 at 2010-02-02 23:35:05 突然间明白鸟! 1 的解释:sum_len%测试长度 肯定是 == 0的,而此时left==arr[i] 说明的是加入第i个小木棍后组成了一个原始木棍,但是整体失败。如果不剪枝,继续测试其他的小木棍,到达最后了情况,已经组成好了k-1的木棍,拼最后一个原始木棍是,还是会出现一开始的那个失败。 囧,不怕脑袋空,就怕脑袋进水......睡了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator