1@echooff2setlocalenabledelayedexpansion3rem-----BatchFile-----4for/f"tokens=1,2"%%ain(list.txt)do(5setREMOTE_ADDR=%%a6echo!REMOTE_ADDR!7setPWD=%%b8ec...
分类:
其他好文 时间:
2014-07-07 11:28:32
阅读次数:
221
本文目录流程控制选择结构-if选择结构-switch循环结构-while循环结构-do while循环结构-forbreak 和 continue回到顶部一、流程控制1> 顺序结构:默认的流程结构。按照书写顺序执行每一条语句。2> 选择结构:对给定的条件进行判断,再根据判断结果来决定执行哪一段代码。...
分类:
其他好文 时间:
2014-07-03 22:21:27
阅读次数:
348
原题:ZOJ 3777 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3777题意:给每个题目安排在每个位置的value。有一个程序随机选择安排的顺序,总的value值大于等于m时,就可以接受这个安排。问能够获得一次满足条件...
分类:
其他好文 时间:
2014-07-02 21:40:19
阅读次数:
219
原题: ZOJ 3785http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3785题意:当天是星期六,问经过1^1+2^2+3^3....+n^n天后是星期几?这题开始以为是这种式子的求和问题,翻了半天没翻到公式。结果没搞出来。...
分类:
其他好文 时间:
2014-07-02 21:31:21
阅读次数:
186
Reverse a linked list from position m to n. Do it in-place and in one-pass.
分类:
其他好文 时间:
2014-07-02 20:12:57
阅读次数:
182
procedure TMainForm.openForm(Caption, FormClassName: string);var i: integer; sheet: TUniTabSheet;begin for i := 0 to page.PageCount - 1 do begin ...
分类:
其他好文 时间:
2014-07-02 18:48:09
阅读次数:
224
原题:ZOJ 3780http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3780刚开始看到还以为是搜索题,没思路就跳过了。结果后来发现就是一个简单的模拟啊,因为每行每列都只能消去一次,直接慢慢消去就好了,因为按字典序从小到大,那...
分类:
其他好文 时间:
2014-07-02 18:28:45
阅读次数:
237
1. [代码]首先是借口定义 * @author xzfpublic interface MyDeque { * insert the specified element at the front of this deque if it is possible * to do so...
分类:
其他好文 时间:
2014-07-02 17:07:48
阅读次数:
237
快速的ping网络中存活的主机,该脚本有并行执行的特点,能够在后台快速完成网络主机的检查。#!/bin/bash
#
#
foripin192.168.1.{1..255};
do
(
ping$ip-c2&>/dev/null;
if[$?-eq0];
then
echo$ipisalived
fi
)&
done
wait如果要出事255个地址,ping每一个IP的主机都..
分类:
其他好文 时间:
2014-07-02 15:59:11
阅读次数:
286
The Story:Last week, I found one of our embedded arm linux device ran out of flash space( totally only 128M for apps and OS).After checking for a whil...
分类:
其他好文 时间:
2014-07-02 14:30:13
阅读次数:
317