上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 37 下一页

2013年10月8日

Vim 中自定义注释快捷键

摘要: 写程序的时候写过的代码不忍心立马删掉,所以注释很多,所以找了下注释的快捷健。打开 /etc/vim/vimrc文件,添加如下两行代码即可。/* 注释该行 */ map = I/* ^[A */j/* 消除该行注释 */map - 0xxx$xxxj解释下,首先应该认识几个vim中常用的字母,大家都知... 阅读全文

posted @ 2013-10-08 16:28 Stomach_ache 阅读(866) 评论(0) 推荐(0) 编辑

2013年9月28日

ubuntu安装SSH

摘要: sudo apt-get install sshSSH 远程登入 Ubuntu 机ssh username@192.168.0.1将 文件/文件夹 从远程 Ubuntu 机拷至本地(scp)scp -r username@192.168.0.1:/home/username/remotefile.t... 阅读全文

posted @ 2013-09-28 11:08 Stomach_ache 阅读(186) 评论(0) 推荐(0) 编辑

2013年9月25日

Ubuntu小知识:更改主机名

摘要: Linux主机名是在安装Linux操作系统的过程中设定的,并作为网络中的某一台主机的唯一标志,但是在安装好Linux系统后,如果想修改主机名,该怎么办呢?本文介绍基于Ubuntu Desktop 9.04。1、快速查看主机名在Ubuntu系统中,快速查看主机名有两种方法:一是打开一个GNOME终端窗... 阅读全文

posted @ 2013-09-25 19:30 Stomach_ache 阅读(162) 评论(0) 推荐(0) 编辑

Ubuntu下安装go语言

摘要: 参考:http://golang.org/doc/install/source1. 下载go源代码sudo apt-get install mercurialhg clone -u release https://code.google.com/p/go2. 编译安装gocd ~/go/src./... 阅读全文

posted @ 2013-09-25 18:37 Stomach_ache 阅读(247) 评论(0) 推荐(0) 编辑

2013年9月11日

HDU 4725 最短路

摘要: /**好险 968ms飘过。。。。。。。。。*说说我的感受,刚开始就直接敲堆优化的dij...发现直接就TLE了,改了好多种建边的方法依然是超时,之后才想到这种方法:*给每层建两个结点,分别标记为 n+2*i-1 和 n +2*i 。然后每个结点到它所在层结点的费用为0,第i层到第i+1层的费用为 ... 阅读全文

posted @ 2013-09-11 20:56 Stomach_ache 阅读(120) 评论(0) 推荐(0) 编辑

2013年9月7日

POJ 2311 博弈

摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int sg[205][205]; 7 8 int solve(int w,int h){ 9 if(sg[w][h]!=-1){10 return ... 阅读全文

posted @ 2013-09-07 20:02 Stomach_ache 阅读(130) 评论(0) 推荐(0) 编辑

各大ACM OJ网址

摘要: 做快乐的程序员以你的条件,你不必追求优秀,但你可以做到良好。各大OJ网址ACM OJ Collection(排名不分先后): 中国:(China) 华东地区: 浙江: 杭州电子科技大学(HDU):http://acm.hdu.edu.cn/浙江大学(ZJU):http://acm.zju.edu.c... 阅读全文

posted @ 2013-09-07 18:59 Stomach_ache 阅读(368) 评论(0) 推荐(0) 编辑

HDU 1536 求解SG函数

摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int K=101; 8 const int H=10001; 9 int s[K],sg[H];10 int k,m,h,n;11 bool... 阅读全文

posted @ 2013-09-07 18:54 Stomach_ache 阅读(97) 评论(0) 推荐(0) 编辑

2013年9月4日

SGU 107

摘要: 1 #include 2 #include 3 //#define suf 987654321 4 5 int main(){ 6 //测试使用,暴力解出n=9时的8个解,平方后缀是否为suf只与其后9位有关 7 /*for(long long i=sqrt(suf*1.... 阅读全文

posted @ 2013-09-04 23:01 Stomach_ache 阅读(125) 评论(0) 推荐(0) 编辑

HDU 1724 自适应辛普森法

摘要: 1 //很裸的积分题,直接上模板 2 #include 3 4 #include 5 6 int aa, bb; 7 8 9 //函数10 double F(double x){11 return sqrt((1-x*x/aa/aa)*bb*bb);12 }13 14 15 //三... 阅读全文

posted @ 2013-09-04 23:00 Stomach_ache 阅读(154) 评论(0) 推荐(0) 编辑

上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 37 下一页

导航