| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:注意他最后吃的组合是可以不在直接给的M个中,然后加一下就行了.....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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator