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

现在知道了,谢谢number!

Posted by gmds at 2005-09-18 10:48:51 on Problem 2441
In Reply To:这个题DP只需要一个(1<<20)的数组 Posted by:number at 2005-09-18 10:01:41
> f[i][1<<20]实际上只用了0..1<<20中二进制表示后1的个数是i的那一部分
> f[i+1][1<<20]只用了1的个数是i+1的那一部分.
> 所以只用一个f[1<<20]就可以了.

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