1. 查看文件内容常用的命令
cat : 由第一行显示文件内容
tac: 从最后一行开始显示,与cat相反
nl : 文件内容和行号一起输出
more: 一页一页显示
less: 与more类似,可以往前翻页
head: 取头部几行
tail: 取尾部几行
od: 以二进制方式读取文件内容...
分类:
系统相关 时间:
2014-07-08 21:30:55
阅读次数:
253
Who's in the Middle
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 31015
Accepted: 17991
Description
FJ is surveying his herd to find the most average c...
分类:
其他好文 时间:
2014-07-08 19:43:07
阅读次数:
164
问题:Windows 8.1系统上安装VirtualSVN Server发生Service 'VisualSVN Server' failed to start. Please check VisualSVN Server log in Event Viewer for more details. 错误
点击retry之后,也无法使用。
网上方案:
在弹出错误之后,运行:ser...
分类:
其他好文 时间:
2014-07-08 19:23:02
阅读次数:
220
int link_admin_pwd(char * admin_pwd, char *admin, char*pwd)
{
if (admin == (char *)NULL ||
pwd == (char *) NULL)
{
return -1;
}
if (strlen(admin) == 0 || strlen(pwd) == 0)
{
return -2;
}
...
分类:
其他好文 时间:
2014-07-08 19:00:55
阅读次数:
169
欧拉通路+并查集+字典树
题意是说 木棍两头有颜色,怎么排让它连成一串。颜色相同可以接起来。
最开始想用map水过去,一直TLE。怒点字典树天赋……花了一上午。
字典树不多介绍,我的节点开小了,CE好几次,才想起
“There is no more than 250000 sticks.”
“A word is a sequence of lowercas...
分类:
其他好文 时间:
2014-07-08 17:22:26
阅读次数:
180
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input st...
分类:
其他好文 时间:
2014-07-08 16:57:40
阅读次数:
193
伯乐人才网6月9日发表了《写给即将入行的程序员的一封信》,翻译自《An
open letter to those who want to start programming》,我的朋友(他在本站的id是Mailper)告诉我,他希望在酷壳上看到一篇更具操作性的文章。因为他也是喜欢编程和技术的家伙,于是,我让他把他的一些学习Python和Web编程的一些点滴总结一下。于是他给我发来了一些他的心得...
分类:
其他好文 时间:
2014-07-08 16:20:52
阅读次数:
453
获取、改变当前目录:
原型为:
#include //头文件
char *getcwd(char *buf, size_t size); //获取当前目录,相当于pwd命令
int chdir(const char *path); //修改当前目录,即切换目录,相当于cd命令
其中getcwd()函数:将当前的工作目录绝对路径复制到参数buf所指的内存空间,参数size为buf的空...
分类:
编程语言 时间:
2014-07-08 15:39:25
阅读次数:
155
The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process ...
分类:
其他好文 时间:
2014-07-08 14:12:32
阅读次数:
226
Who's in the Middle
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 31149
Accepted: 18073
Description
FJ is surveying his herd to find the most average cow...
分类:
其他好文 时间:
2014-07-08 13:30:10
阅读次数:
144