2008年8月4日星期一

ZJU/ZOJ 1454 Employment Planning 解题报告

题目大意是有一项工程每个月需要雇佣一定的工人,给出雇佣一个工人的费用、一个工人一个月的工资、解雇一个工人的费用以及每个月需要的工人人数,问完成这项工程最少需要花费多少钱。

只想到了时间复杂度是O(mn^2)的DP。m是月份数,n=单月最大所需工人数-该月所需工人数。状态转移方程是f[i,j]=min(f[i,j],f[i-1,k]+(j-k)*c1+j*c2)(k<j);min(f[i,j],f[i-1,k]+(k-j)*c3+j*c2)(k>=j)。f[i,j]表示第i个月雇佣j个人所需的最小费用,c1是雇佣费用,c2是工资,c3是解雇费用。

3021173 2008-08-04 16:05:27 Accepted 1454 FPC 00:00.27 416K IwfWcf@LZOI

9 条评论:

  1. I like whаt you guуs are up toο.
    Such smart ωork аnd rеporting!
    Keеp uρ the еxcellent works guys I’ve incоrporated you guуs to
    mу blogrοll. I thіnk іt'll improve the value of my site :)

    Also visit my blog :: dragonfly jewelry **

    回复删除
  2. Hi! Do you use Tωittеr? ӏ'd like to follow you if that would be okay. I'm definitely enjoying your blog
    and look forwаrd to new рoѕts.


    Аlso visit my blog; elektгogrill [schematy.org]

    回复删除
  3. toms outlet, http://www.tomsoutlet-stores.com/
    nike roshe, http://www.nikerosherunshoes.co.uk/
    prada handbags, http://www.pradahandbagsoutlet.co.uk/
    soccer jerseys, http://www.cheapsoccerjersey.net/
    michael kors outlet store, http://www.michaelkorsoutlet-store.us.com/
    true religion jeans, http://www.truereligionjeansoutlets.us.com/
    oakley sunglasses, http://www.oakleysunglasses-outlet.us.com/
    nike free 5, http://www.nikefree5.us/
    louis vuitton bags, http://www.louisvuittonbag.us.com/
    chanel handbags, http://www.chanelhandbags-outlet.co.uk/
    chanel handbags, http://www.chanelhandbags-outlet.us.com/
    louis vuitton handbags, http://www.louisvuittonhandbag.us/
    louis vuitton outlet, http://www.louisvuittonoutlet.in.net/
    ghd hair straighteners, http://www.ghdhairstraightenerssale.co.uk/
    nba jerseys, http://www.nbajerseys.us.com/
    coach outlet, http://www.coachoutletstores.com.co/
    true religion jeans, http://www.truereligionjeanscanada.com/
    swarovski crystal, http://www.swarovskicrystals.co.uk/
    mbt shoes, http://www.mbtshoesoutlet.us.com/
    michael kors handbags, http://www.michaelkorshandbags.in.net/
    chanel handbags, http://www.chanelhandbagsoutlet.in.net/
    michael kors outlet online, http://www.michaelkorsoutletonline.in.net/
    polo ralph lauren, http://www.poloralphlauren.us.org/
    the north face clearance, http://www.thenorthfaceclearances.us.com/
    jordan shoes, http://www.jordan-shoes.us.com/
    beats by dr dre, http://www.beatsbydrdre-headphones.us.com/
    the north face uk, http://www.thenorthfaces.org.uk/
    1003maoqiuyun

    回复删除
  4. replica bags in china basics z4i20g1s85 replica bags manila you can check here d2o47m2r74 best replica designer bags replica bags canada website link r0x65u1i59 fake louis vuitton replica bags nancy

    回复删除

相关文章

 
Creative Commons License
除非另有声明,本网站采用知识共享署名-非商业性使用-相同方式共享 3.0 许可协议授权。