一、gzip工具二、bzip工具三、xz工具四、zip和unzip五、tar一、gzip和zcat(-d,-n)[roo@localhost~]#gzip-9install.log//压缩级别1~9,1-faster,9-better-rw-r--r--.1rootroot37193月910:58install.log.gz[roo@localhost~]#gzip-dinstall.log.gz//-d或gunzip解压缩,[root@l..
分类:
系统相关 时间:
2015-04-01 07:10:40
阅读次数:
199
一、gzip工具二、bzip工具三、xz工具四、zip和unzip五、tar一、gzip和zcat(-d,-n)[roo@localhost~]#gzip-9install.log//压缩级别1~9,1-faster,9-better-rw-r--r--.1rootroot37193月910:58install.log.gz[roo@localhost~]#gzip-dinstall.log.gz//-d或gunzip解压缩,[root@l..
分类:
系统相关 时间:
2015-04-01 07:09:39
阅读次数:
254
题目地址:HDU 1856水题。因为标号范围太大,而数据数仅仅有10w,所以要先进行离散化。然后就是裸的并查集了。代码例如以下:#include #include #include #include #include #include #include #include #include #incl...
分类:
其他好文 时间:
2015-03-30 15:48:52
阅读次数:
107
The more, The Better
Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
ACboy很喜欢玩一种战略游戏,在一个地图上,有N座城堡,每座城堡都有一定的宝物,在每次游戏中ACboy允许攻克M个城堡并获...
分类:
其他好文 时间:
2015-03-28 14:27:27
阅读次数:
141
Why Improvement?Improvement, which means making things better, is the one we always expect in our life. That’s radically true and no argument among us...
分类:
其他好文 时间:
2015-03-19 14:34:38
阅读次数:
144
problem:
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this:
(you may want to display this pattern in a fixed font for better legibility)
P A H N
A...
分类:
其他好文 时间:
2015-03-17 15:59:47
阅读次数:
129
解析:又是一个并查集。
1、题意:王老师需要一些男生帮他做事。要求男生之间都是朋友关系,可以直接的,也可以间接地。最多可以挑选出几个男生(最少挑一个)?
2、并查集,求所有集合中最大集合的元素个数。
3、要注意一个地方是:当n=0时,要输出1。
#include
#include
using namespace std;
int p[10000001],num[100000...
分类:
其他好文 时间:
2015-03-15 16:52:47
阅读次数:
107
题意:Mr Wang wants some boys to help him with a project. Because the project is rather complex,the more boys come, the better it will be. Of course ther...
分类:
其他好文 时间:
2015-03-13 12:08:05
阅读次数:
103
1.引言 C++语言的创建初衷是“a better C”,但是这并不意味着C++中类似C语言的全局变量和函数所采用的编译和连接方式与C语言完全相同。作为一种欲与C兼容的语言,C++保留了一部分过程 式语言的特点(被世人称为“不彻底地面向对象”),因而它可以定义不属于任何类的全局变量和函数。但是,C....
分类:
其他好文 时间:
2015-03-11 10:45:22
阅读次数:
121
为什么要换种方式分页,一个字:太慢了 分页要传入的参数,1:页号,2:行数 分页要取到的数据, 1:总行数,2:单页数据 本文的方式应该有不少老手在使用了,欢迎吐糟、拍砖!http://www.cnblogs.com/mikedeng/p/better_pagination.html
分类:
其他好文 时间:
2015-03-08 21:27:16
阅读次数:
136