摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1016题意:已知一个数n,在1-n(包含 n ,0 2 #include 3 #include 4 #include 5 using namespace std; 6 int visited[25]; 7 ... 阅读全文
posted @ 2015-08-17 17:28 ediszhao 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1.引导为indows系统和其他系统: [root@xxx]# grub2-mkconfig -o /boot/grub2/grub.cfg 2.挂载其他盘: 首先安装ntfs3: wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-201... 阅读全文
posted @ 2015-08-14 21:08 ediszhao 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/lydyangliu/article/details/9208635\usepackage{graphicx}\usepackage{xcolor}\usepackage{listings}\lstset{%alsolanguage=Java,%... 阅读全文
posted @ 2015-06-02 20:34 ediszhao 阅读(5278) 评论(0) 推荐(1) 编辑
摘要: 输入符:%s 字符串%r 字符串---repr()%c 单个字符%b 二进制%d 十进制%i 八进制%x 十六进制%e 指数---底数e%E 指数---底数E%f 浮点数%F 同上%g 指数e或者浮点数(根据显示长度)%G ...E...%% 字符'%'python ... 阅读全文
posted @ 2015-05-22 17:17 ediszhao 阅读(140) 评论(0) 推荐(0) 编辑
摘要: vim作为一个强大的编辑器,让我无法离开它,它的使用需要慢慢的体验和熟悉多行首插入:ctrl + v 选中出入地,I + // (注释符号) , esc + I:vsp xx.txt 新建纵向窗口ctrl + ww 窗口转换ctrl + w + J 转为下窗口全局替换:普通模式下::%s /old ... 阅读全文
posted @ 2015-05-21 21:30 ediszhao 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1 下载git sudo apt-get install git2 添加公钥:terminal:ssh-keygen -t rsa -C "git.oschina.net"3 cat .ssh/id_rsa.pub 复制到git-oschina里的公钥4 git config --global ... 阅读全文
posted @ 2015-04-27 14:06 ediszhao 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 参考window汉化codeblocks,linux下有点麻烦,就是要找到codeblocks的文件安装在哪里。一般来说,linux下安装的软件大都在/usr/share/文件夹下,所以进入/usr/share/codeblocks/添加新文件夹locale/zh_CN ,把CodeBlocks.m... 阅读全文
posted @ 2015-03-30 22:36 ediszhao 阅读(1990) 评论(1) 推荐(1) 编辑
摘要: #define Local#include #include //#include using namespace std;int main(){#ifdef Local freopen("datain.txt","r",stdin); freopen("dataout.txt","r",std... 阅读全文
posted @ 2015-03-17 15:28 ediszhao 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/NeilHappy/archive/2012/12/08/2808417.html#include int gettimeofday(struct timeval *tv,struct timezone *tz); strut timeval {... 阅读全文
posted @ 2014-12-14 10:19 ediszhao 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.notonlysuccess.com/http://www.cnblogs.com/Mu-Tou/archive/2011/08/11/2134427.html膜拜之。。。【完全版】线段树很早前写的那篇线段树专辑至今一直是本博客阅读点击量最大的一片文章,当时觉得挺自豪的... 阅读全文
posted @ 2014-11-12 21:35 ediszhao 阅读(164) 评论(0) 推荐(0) 编辑