上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 37 下一页

2014年4月7日

Codeforces 414A

摘要: 题目链接首先考虑无解的情况: n / 2 > k 或者 n==1 且 k != 0 (因为两个数的最大公约数最小为1)然后因为有 n / 2 组(把 a[i] 和 a[i+1] 看成一组), 所以我可以试 a[1] 和 a[2]的最大公约数为 k - n / 2 + 1, 这样后面的每个组只需要为1... 阅读全文

posted @ 2014-04-07 14:57 Stomach_ache 阅读(164) 评论(0) 推荐(0) 编辑

Github常见错误

摘要: github常见操作和常见错误!错误提示:fatal: remote origin already exists.2013-12-13 00:10:46|分类:github|举报|字号订阅如果输入$ git remote add origingit@github.com:djqiang(github... 阅读全文

posted @ 2014-04-07 14:31 Stomach_ache 阅读(140) 评论(0) 推荐(0) 编辑

2014年4月5日

排序函数中比较函数cmp的理解

摘要: 无论是使用 sort() 或者 qsort(), 都会使用到自己定义比较函数,习惯上定义为 cmp如:int cmp(const void *x, const void *y) { return *(int*)x - *(int*)y;}我一直也是这样用,直到去年寒假给学弟们讲课的时... 阅读全文

posted @ 2014-04-05 15:37 Stomach_ache 阅读(343) 评论(0) 推荐(0) 编辑

2014年4月4日

Hdu 4143

摘要: 题目链接好久没有在Hdu水题了,于是乎在无聊之际还是找了一道水题,但是看完题目之后,明显是个数学题,我还是感觉有点打触的。因为一直对数学题没有多大信心。分析了一下,Y^2 = X^2 + n 可以转化为 Y^2 = (X + a)^2所以:n = a^2 + 2 * a * X , 而且 X > 0... 阅读全文

posted @ 2014-04-04 21:39 Stomach_ache 阅读(131) 评论(0) 推荐(0) 编辑

2014年4月2日

Wireshark 基本使用方法

摘要: 学习于:http://www.cnblogs.com/TankXiao/archive/2012/10/10/2711777.html 阅读全文

posted @ 2014-04-02 22:12 Stomach_ache 阅读(103) 评论(0) 推荐(0) 编辑

Valgrind 初次接触

摘要: Valgrind 英文的意思是:堆内存它有很多小工具,作用各不相同学习于:http://blog.csdn.net/sduliulun/article/details/7732906http://www.bagualu.net/wordpress/?p=2360 阅读全文

posted @ 2014-04-02 21:37 Stomach_ache 阅读(106) 评论(0) 推荐(0) 编辑

2014年3月30日

Wireshark设置interface 时提示“There are no interfaces on which a capture can be done ”

摘要: 学习于:http://blog.163.com/likaifeng@126/blog/static/32097310201271451655190/ 阅读全文

posted @ 2014-03-30 16:45 Stomach_ache 阅读(155) 评论(0) 推荐(0) 编辑

2014年3月29日

Markdown 常用语法学习(stackedit)

摘要: Welcome to StackEdit!{#welcome}=====================Hello, I am your first Markdown document within **StackEdit**[^stackedit]. Don't delete me, I can... 阅读全文

posted @ 2014-03-29 22:45 Stomach_ache 阅读(670) 评论(0) 推荐(0) 编辑

Sublime Text2的常用技巧总结(更新中...)

摘要: 1. 选中一段内容后,按 Tab 或者 shift Tab 可以控制缩进2. alt + shift + 数字, 开启多个窗口,数字代表分割后的个数,分割后按 Ctrl + shift + 数字 可以把当前窗口的内容剪切到选择的数字所代表的窗口中,也就是转移内容。3.查找/替换Ctrl+F:查找内容... 阅读全文

posted @ 2014-03-29 12:32 Stomach_ache 阅读(202) 评论(0) 推荐(0) 编辑

2014年3月28日

Python比较有用的小语法

摘要: 额,这是在Codeforces做题的时候从Virtual judge那儿学的#ord()内置函数,将单个字符变为int#chr()内置函数,将int变为单个字符# for : else ( 或 while : else) 这个语法好用 阅读全文

posted @ 2014-03-28 22:04 Stomach_ache 阅读(152) 评论(0) 推荐(0) 编辑

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 37 下一页

导航