Given a string s and a dictionary of words
dict, determine if s can be segmented into a space-separated sequence of one or
more dictionary words.For e...
分类:
其他好文 时间:
2014-07-22 23:08:32
阅读次数:
383
给出一个森林,每棵树均为一组物品,首先推出每棵树可以组成的物品种类。
然后是基本的分组背包模板。
即 最外层枚举组数,次外层枚举背包容量,内层枚举物品体积。
对于每棵树有 ans[root][i+j] = ans[root][ i ] + ans[son][ j ]。
题水数据也水,不多说了。
#include
#include
#include
#include
#in...
分类:
其他好文 时间:
2014-07-22 23:05:52
阅读次数:
387
去网站下载mysql的yum源,地址如下:
http://repo.mysql.com/
在linux上先查看系统的版本号,根据版本号对应下载
more /etc/redhat-release
rpm -Uvh
http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum -y upgrade mysql
m...
分类:
数据库 时间:
2014-07-22 23:03:13
阅读次数:
472
Artificial Intelligence?
Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and underst...
分类:
其他好文 时间:
2014-05-02 23:39:35
阅读次数:
485
一种动态样式语言.LESS 将 CSS 赋予了动态语言的特性,如变量,继承,运算,函数.
LESS 既可以在客户端上运行 (支持IE 6+, Webkit, Firefox),也可以借助Node.js或者Rhino在服务端运行。变量简单示例: //
LESS@color: #4D926F;#hea....
分类:
其他好文 时间:
2014-05-01 14:25:11
阅读次数:
350
What is an object? (Page 238)In C++, an object
is just a variable, and the purest definition is "a region of storage" (this is
a more specific way ...
分类:
其他好文 时间:
2014-05-01 04:38:01
阅读次数:
327
More is better
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 327680/102400 K (Java/Others)
Total Submission(s): 13119 Accepted Submission(s): 4800
Problem Description
Mr Wang ...
分类:
其他好文 时间:
2014-04-30 22:24:39
阅读次数:
285
sudo vim /etc/network/interfaces,
将该文件的内容修改为如下:(也就是说删掉其他的什么auto eth0、auto wlan0)auto loiface lo inet loopback
分类:
Web程序 时间:
2014-04-30 15:50:31
阅读次数:
474
Mrs Little likes digits most of all. Every year she tries to make the best number of the year. She tries to become more and more intelligent and every year studies a new digit. And the number she make...
分类:
其他好文 时间:
2014-04-29 13:13:21
阅读次数:
309
为了避免目标端nrpe进程监控多个接口而造成的安全漏洞。有必要固定服务端的地址,对nrpe.cfg配置中,有下列一行介绍
#SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one interface
# and you do not want nrpe to bind on all in...
分类:
其他好文 时间:
2014-04-27 22:36:17
阅读次数:
454