While 和 Do-While //whileint i = 0;while (i < 10) { System.out.print(i++);}//do - while int i = 0;do { System.out.print(i++); } while ( i < 10 );For 和 ...
分类:
编程语言 时间:
2014-08-09 02:34:36
阅读次数:
281
原文:https://www.technovelty.org//linux/bash-arithmetic-evaluation-and-errexit-trap.html
在 "traps for new players" 一章:
count=0
things="0 1 0 0 1"
for i in $things;
do
if [ $i == "1" ]; then
...
分类:
其他好文 时间:
2014-08-08 21:33:46
阅读次数:
258
Problem C
If We Were a Child Again
Input: standard input
Output: standard output
Time Limit: 7 seconds
“Oooooooooooooooh!
If I could do the easy mathematics like my school days!!
I...
分类:
编程语言 时间:
2014-08-08 18:10:16
阅读次数:
281
#!/bin/sh#authbyyx20140808#purgenginxcacheCACHE_DIR="/data/web/cache"FILE="$*"if[$#-eq0];thenecho"pleaserun\"sh$0index.htmlindex.jsp....\""exitfiforiin`echo$FILE`dogrep-ra$i${CACHE_DIR}|awk-F":"‘{print$1}‘>./cache_list.txtforjin`cat./cache_list.txt`do rm..
分类:
其他好文 时间:
2014-08-08 16:33:27
阅读次数:
197
~~~~
两个题目大致类似,NYOJ上面那道题就是小白上的矩形嵌套啦。
都是先对长宽进行排序,然后逐层更新最大值(边更新边记录)。
好了,不说了。
题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1093
http://acm.nyist.net/JudgeOnline/problem.php?p...
分类:
其他好文 时间:
2014-08-08 16:13:36
阅读次数:
193
What is Port Triggering?
If you have not read my explanation of port forwarding do so now. You can find it
here.
Port triggering is pretty simple once you know what port forwarding is. Port...
分类:
其他好文 时间:
2014-08-08 16:12:36
阅读次数:
362
当我们使用gvim编辑文件的时候,会自动生成带~的备份文件,如果我们不想在编辑文件的时候自动生成备份文件的话,那么就需要修改其配置文件了,但是我在vimrc文件中没有找到相应的配置项,于是就发现应该在vim的安装目录下的74的vimrc_example.vim文件中进行修改,我们在它的第24行开始部分找到了如下代码:
if has("vms")
set nobackup " do not ...
分类:
其他好文 时间:
2014-08-08 16:06:56
阅读次数:
244
Any class that manages a resource (awrapper, like a smart pointer) needs to implementThe Big Three. While the goals and implementation of the copy-con...
分类:
其他好文 时间:
2014-08-08 15:51:06
阅读次数:
262
维基百科:http://zh.wikipedia.org/zh-cn/并查集假设初始化时用数组表示每个位置上的元素其father是自己,以对象是整数集为例Init:fori<- 1:n do father[i]<- i;findFather(x)if father[x] = x return f.....
分类:
其他好文 时间:
2014-08-08 15:45:36
阅读次数:
169
知识点:算法while循环的用法。内容: 求两个自然数的最小公倍数输入说明:输出说明:输入样例:2 4输出样例 :4 1 #include 2 int main() 3 { 4 int a,b,t,A,B; 5 scanf("%d %d",&a,&b); 6 A=a; 7 B=b; 8 ...
分类:
其他好文 时间:
2014-08-08 15:16:06
阅读次数:
232