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 Burn_E at 2012-08-03 12:10:19 on Problem 2541 and last updated at 2012-08-03 12:11:04
d[i][j]表示长度为i内容为j的最晚结束位置。0<=j<2^13。
这样扫一遍就可以可,复杂度为O((N+L)*13)

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