09 2013 档案

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 阅读(187) 评论(0) 推荐(0) 编辑

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

posted @ 2013-09-25 19:30 Stomach_ache 阅读(164) 评论(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 阅读(248) 评论(0) 推荐(0) 编辑

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) 编辑

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 阅读(132) 评论(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 阅读(381) 评论(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) 编辑

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) 编辑

POJ 1061 扩展欧几里得
摘要:1 #include 2 #include 3 4 typedef long long ll; 5 6 void gcd(ll a,ll b,ll& d,ll& x,ll& y){ 7 if(b==0){ 8 d=a; x=1; y=0; return ; 9 ... 阅读全文

posted @ 2013-09-03 09:42 Stomach_ache 阅读(117) 评论(0) 推荐(0) 编辑

HDU 1690 最短路
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 typedef __int64 ll; 8 #define inf 0x3f3f3f3f 9 //#define inf 0x7f7f7f7f7f7f7f... 阅读全文

posted @ 2013-09-01 11:26 Stomach_ache 阅读(105) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示