Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么总是TLE,我做的剪枝我感觉够了

Posted by gameboy at 2006-10-14 12:24:18 on Problem 1011
首先我排序了
对于长度相等但第一次遇到这一长度不行的话,跳过所有这一长度
当有一根小棍正好能填充某一stick剩下的长度时,若最终没能得到结果,则不考虑比这根小棍更小的小棍
这样不够吗??

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator