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

这题数据可能水了,特判掉s=0的情况之后,剩下的数据最多只切了166刀,n*n*n的dp可以斜率优化到166*n的复杂度500ms水过。还是去学O(n)的dp+斜率优化吧。

Posted by 14rj134 at 2017-01-31 11:34:34 on Problem 1180 and last updated at 2017-01-31 11:58:54
这题数据可能水了,特判掉s=0的情况之后,剩下的数据最多只切了166刀,n*n*n的dp可以斜率优化到166*n的复杂度500ms水过。还是去学O(n)的dp+斜率优化吧。

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