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

新的思路,过了的能帮忙看一看吗?

Posted by zhongfuzhi at 2016-08-18 14:29:20 on Problem 1065
我的想法是将木棍分成若干堆,堆数最少的分法就是答案。
当前已有的堆中寻找可以插入木棍的堆,可不可以插入由插入之后是否破坏l和w的顺序决定,另外单独新建一个堆也是一种选择。
就这样深度搜索,讨论区的数据我都过了,但是还是WA。
我觉得没超时的话思路应该是对的,我一种情况都没漏啊。

谢谢!

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