题目:http://www.lydsy.com/JudgeOnline/problem.php?id=1879本来是一道水题(~~~~(>__#include #include #include #define c(w,i) ((w>>i)&1)#define mod 1000003#define ...
分类:
其他好文 时间:
2015-06-04 11:37:04
阅读次数:
95
最近看一些old fasion的代码,发现仅仅一个logger的声明,就很有意思。 以SLF为例, 首先是推荐的写法: private?final?static?Logger?logger?=?LoggerFactory.getLogger(MyClass.class); 然后按词解读: ...
分类:
其他好文 时间:
2015-06-02 11:33:27
阅读次数:
100
参考文章 :http://www.iteye.com/topic/754887 /** * 扩展散列表的容量 * @param newCapacity */ void resize(int newCapacity) { Entry[] old...
分类:
其他好文 时间:
2015-06-01 18:08:07
阅读次数:
101
SYN Flood是当前最流行的DoS(拒绝服务攻击)与DDoS(分布式拒绝服务攻击)的方式之一,这是一种利用TCP协议缺陷,发送大量伪造的TCP连接请求,从而使得被攻击方资源耗尽(CPU满负荷或内存不足)的攻击方式。http://blog.csdn.net/bill_lee_sh_cn/artic...
分类:
其他好文 时间:
2015-05-31 23:13:44
阅读次数:
166
1244. GentlemenTime limit: 0.5 secondMemory limit: 64 MBLet's remember one old joke:Once a gentleman said to another gentleman:— What if we play cards...
分类:
其他好文 时间:
2015-05-31 23:08:39
阅读次数:
212
1.创建普通用户账号(这里提示预防误操作)创建用户useradddzzxtbl添加密码Passwdzzxtbl快速命令:ehco“123456”|passwd–stdinzzxtbl&&history–c不用窗体交互2.安装yum源的配置Cd/etc/yum.repos.d/这里备份原有的yum源bin/mvCentOS-Base.repoCentOS-Base.repo.old下..
分类:
其他好文 时间:
2015-05-31 18:40:11
阅读次数:
1351
Problem DescriptionMarsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share...
分类:
其他好文 时间:
2015-05-29 21:36:23
阅读次数:
136
DESCRIBE PRODUCTS_TBL;+-----------+--------------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Extra |+---------...
分类:
其他好文 时间:
2015-05-29 17:43:58
阅读次数:
112
var old_destid = localStorage.getItem('destid'); if (!old_destid) { var destids = []; destids.push(destid) } else { var destids = old_destid.split('.....
分类:
编程语言 时间:
2015-05-29 17:11:19
阅读次数:
242
在python中,模拟http客户端发送get和post请求,主要用httplib模块的功能。1、python发送GET请求我在本地建立一个测试环境,test.php的内容就是输出一句话:1echo 'Old friends and old wines are best.';python发送get请...
分类:
编程语言 时间:
2015-05-29 15:32:42
阅读次数:
205