解决emacs中cscope的定义键无效1、cscope的el插件为xcscope.el,通过“sudo find / -name xcscope.el”查找该文件所在的位置2、打开xcscope.el查找“(define-key cscope:map "\C-css" 'cscope-find-t...
分类:
其他好文 时间:
2014-07-02 18:32:30
阅读次数:
546
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string s1, s2; 6 getline(cin, s1); 7 getline(cin, s2); 8 while(s1.find(s...
分类:
其他好文 时间:
2014-07-02 17:17:29
阅读次数:
281
题目如下:
Dungeon Master
You are trapped in a 3D dungeon and need to find the quickest way out!The dungeon is composedof unit cubes which may or may not be filled with rock. It ...
分类:
其他好文 时间:
2014-07-02 16:53:39
阅读次数:
199
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-07-02 16:35:32
阅读次数:
213
@ECHOOFF:checkconverter.exetasklist>list.txt//将所有进程信息列入list.txt文件里面(这里默认当前目录)find/i"converter.exe"list.txt//从list.txt文件里查找java.exe这个进程if"%errorlevel%"=="1"(gotostart)else(gotoe)//如果进程不存在,执行start处的代码;反之执..
Pick-up sticks
Problem Description
Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks,...
分类:
其他好文 时间:
2014-07-02 15:29:53
阅读次数:
295
1 #include 2 #include 3 using namespace std; 4 int main(){ 5 string s; 6 char c; 7 getline(cin,s); 8 cin>>c; 9 if(s.find(c)!=stri...
分类:
其他好文 时间:
2014-07-02 15:02:48
阅读次数:
257
Requirement-Driven Linux Shell ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where can I find the basic Material about Linu...
分类:
系统相关 时间:
2014-07-02 13:55:48
阅读次数:
410
进入Ubuntu之后打开终端窗口的快捷键是:
ctrl + alt+T:通过这个命令可以打开终端。截图是:
关闭一个终端窗口的方式是:
Alt +F4,在Ubuntu下还可以是exit
对于terminal中的符号,其中的$标识,普通用户时显示的是$,超级管理员对应的符号是:#
截图如下:...
分类:
系统相关 时间:
2014-07-02 07:58:14
阅读次数:
788
Union-Find
动态连接问题描述:
给定一个n个序列的对象,有两种操作:
-Union command:连接两个对象;
-Find/connected query:两个对象是否连接(有路径)
算法实现方式
1.用一个数组保存着每个对象所在的connected component,这种方式可以快速进行FIND,但是在union操作时需要遍历整...
分类:
其他好文 时间:
2014-07-02 07:10:59
阅读次数:
287