题目链接:zoj 3812 We Need Medicine
题目大意:有n中化学成分,每种成分要么选取重量Wi,获得Ti的TEV值,要么不取,获得0的TEV值。现在对于每种病
毒,要求配置质量为Mi的药物,并且TEV值为Si,求化学成分组成。
解题思路:看了别人的题解,以前居然不知道背包转移可以用二进制。
因为质量总共才50,所以用一个long long的二进制数表示说哪...
分类:
其他好文 时间:
2014-09-10 17:46:10
阅读次数:
171
if you need append some string to element and need set some attribute on these string at the same time,you'b better use appendTo funtion.because you c...
分类:
移动开发 时间:
2014-09-10 12:14:20
阅读次数:
183
In 8.1 we use the below code to navigate between pages:this.Frame.Navigate(typeof(PivotPage));In 8.1 we need to use the event to add hardware back eve...
分类:
其他好文 时间:
2014-09-09 22:43:59
阅读次数:
226
先贴一下转载的思路和代码,,,:http://blog.csdn.net/qian99/article/details/39138329状压dp博大精深啊,以后看到n 2 #include 3 #include 4 #include 5 #include 6 #include 7 #in...
分类:
其他好文 时间:
2014-09-09 15:09:58
阅读次数:
239
We Need Medicine
Time Limit: 10 Seconds Memory Limit: 65536 KB Special Judge
A terrible disease broke out! The disease was caused by a new type of virus, which will lead to lethal lymp...
分类:
其他好文 时间:
2014-09-09 12:55:12
阅读次数:
301
he Himalayas
Time Limit: 2 Seconds Memory Limit: 65536 KB
As an artist, Bob usually need to travel around the world. He made a lot of sketch of scenery on his journey. A famous spot he ha...
分类:
其他好文 时间:
2014-09-09 12:48:18
阅读次数:
214
The 2014 ACM-ICPC Asia Mudanjiang Regional First Round - AThe HimalayasTime Limit: 2 Seconds Memory Limit: 65536 KBAs an artist, Bob usually need to t...
分类:
其他好文 时间:
2014-09-09 11:42:28
阅读次数:
332
【A】The HimalayasTime Limit: 2 Seconds Memory Limit: 65536 KBAs an artist, Bob usually need to travel around the world. He made a lot of sketch of s...
分类:
其他好文 时间:
2014-09-09 10:30:58
阅读次数:
230
今天给php编译安装Fileinfo的时候,报configure:WARNING:Youwillneedre2c
0.13.4orlaterifyouwanttoregeneratePHPparsers.看了下说是要re2c这个东西.解决办法:wgethttp://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/downloadtarzxfre2c-0.13.5.tar.gz..
分类:
Web程序 时间:
2014-09-09 09:10:09
阅读次数:
256