质因数分解。 1 //Accepted 0 KB 12 ms 2 #include 3
#include 4 #include 5 const int MAXN = 100005; 6 const int inf = 100000000; 7
int pri[MAXN]; 8 in...
分类:
其他好文 时间:
2014-05-25 23:10:33
阅读次数:
283
这篇文章主要介绍Shell脚本编写俄罗斯方块的方法,原文来自脚本之家,http://www.jb51.net/article/48926.htm效果图:代码:#!/bin/bash#
Tetris Game# 10.21.2003 xhchen#APP declarationAPP_NAME="${...
分类:
其他好文 时间:
2014-05-25 22:25:03
阅读次数:
352
and 命令if [ A -a B ]thenelsefiset commandset these
are parameters$1setstringsstr="A is a"echo "$str"a=30 b=15echo `expr $a +
$b`echo `expr $a - $b`ec.....
分类:
其他好文 时间:
2014-05-25 22:15:35
阅读次数:
268
注: 上面反斜杠后面没有空格。记忆: 反斜杠后的字符将反斜杠替换。
分类:
其他好文 时间:
2014-05-25 22:03:25
阅读次数:
191
1. 变量赋值时 = 两边不能有空格.2. if比较时 = 两遍有空格.3. [ 的左右两边 和 ]
的左边有空格, 1 #!/bin/sh 2 # 字符串比较 3 aa= 4 bb="hello" 5 cc="world" 6 7 #
1.注意判断中的字符串变量用双引号括起来(不括起来在某些情况....
分类:
其他好文 时间:
2014-05-25 22:01:11
阅读次数:
298
1. Jar包:ganymed-ssh2-build210.jar2. 步骤: a) 连接:
Connection conn = new Connection(ipAddr); conn.connect(); b)认证: boolean
authenticateVal = co...
分类:
编程语言 时间:
2014-05-25 20:35:17
阅读次数:
1774
1.shell变量本地变量:a=1 (等号两边不能出现空格)只读变量:readonly 变量名=变量值
(在使用过程中不能更改)声明变量:linux给变量赋值时默认是字符或字符串型,如果需要数值运算,需要事先声明declare 参数
变量名[=变量值]declare的参数: -a:数组 -i:整型 ...
分类:
系统相关 时间:
2014-05-25 14:12:48
阅读次数:
286
http://acdream.info/problem?pid=1093女神的正多面体Time
Limit:2000/1000 MS (Java/Others)Memory Limit:128000/64000 KB
(Java/Others)SubmitStatisticNext ProblemP...
分类:
其他好文 时间:
2014-05-25 12:27:58
阅读次数:
174
1 #-*-coding:UTF-8 -*- 2 import datetime,time 3
import os 4 print u"=================尊敬的梦猩魂,欢迎使用记事本=================="; 5
con=True 6 while con: 7 ...
分类:
编程语言 时间:
2014-05-25 08:46:15
阅读次数:
286
进入iTunes ConnectManage Your Apps->New
Version->View DetailsLinks->Binary Details->Reject This
Binary->Reject Binary->DoneReady to Upload Binary->No No...
分类:
移动开发 时间:
2014-05-25 07:42:14
阅读次数:
267