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

Re:注意他最后吃的组合是可以不在直接给的M个中,然后加一下就行了.....

Posted by ycc1989918 at 2009-09-20 18:43:58
In Reply To:注意他最后吃的组合是可以不在直接给的M个中,然后加一下就行了..... Posted by:twilight at 2009-09-20 18:34:03
大牛能再将详细点吗?我还是有点没理解···枚举所有吃的方式不是有2^n种组合,然后对于每种组合需要M次来求权值,这样复杂度不就是2^n*m····好像会超啊···

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