1.写一个脚本,实现判断10.0.0.0/24网络里,当前在线用户的IP有哪些(方法有很多) #!/bin/sh for n in `seq 254` do ping -c1 -w1 10.0.0.$n &>/dev/null if [ $? -eq 0 ] then echo "10.0.0.$n ...
分类:
系统相关 时间:
2017-11-13 16:55:49
阅读次数:
224
题目描述 Hanks 博士是 BT (Bio-Tech,生物技术) 领域的知名专家,他的儿子名叫 Hankson。现在,刚刚放学回家的 Hankson 正在思考一个有趣的问题。 今天在课堂上,老师讲解了如何求两个正整数 c1 和 c2 的最大公约数和最小公倍数。现在 Hankson 认为自己已经熟练 ...
分类:
其他好文 时间:
2017-11-11 19:51:30
阅读次数:
176
/* */ #include #include #include using namespace std; int c1[121], c2[121]; void init() { for (int i = 0; i <= 120; i++) { c1[i] = 1; c2[i] = 0; } for... ...
分类:
其他好文 时间:
2017-11-11 14:48:43
阅读次数:
143
/* v[] //表示150内的素数 */ #include #include #include #include using namespace std; int c1[150], c2[150]; int v[40] = {0, 2, 3, 5, 7, 11, 13, 17, 19, 23, 2... ...
分类:
其他好文 时间:
2017-11-11 14:46:42
阅读次数:
194
/* #include #include #include #include using namespace std; int c1[8010], c2[8010]; int main() { int s[4], v[4] = {0, 1, 2, 5}; while (scanf("%d%d%d",... ...
分类:
其他好文 时间:
2017-11-11 14:45:27
阅读次数:
159
#include #include #include using namespace std; long long c1[301], c2[301]; void init() { for (int i = 0; i <= 300; i++) { c1[i] = 1; c2[i] = 0; } for... ...
分类:
其他好文 时间:
2017-11-11 14:45:04
阅读次数:
152
select column1+10 as c1,c1+10 as c2 from table1;想实现上面的效果,结果在mysql里面报错了,提示找不到c1这个列; -- 不同的 数据库不一样 一般不支持在select中继续使用别名 或者where语句中使用 如果是在要用 可以尝试是否支持: sel ...
分类:
数据库 时间:
2017-11-10 17:07:10
阅读次数:
296
常见压缩格式Windows:.rar、.zip、.7zLinux:.zip、.gz、.bz2、.xz、.tar、.gz、.tar.bz2、.tar.xzgzip压缩工具用来压缩文件(常用)gzip1.txt压缩1.txtgzip-d1.txt.gz解压1.txt.gzgzip-c1.txt>/tmp/1.txt.gz压缩文件且不删除原有文件gzip-d-c/tmp/1.txt.gz>/tmp/d6z/2...
分类:
系统相关 时间:
2017-11-09 22:42:00
阅读次数:
191
rman target / log=/orasoft/backup/${DATE}backup1.log <<EOFrun {allocate channel c1 device type disk;allocate channel c2 device type disk;allocate chan ...
分类:
数据库 时间:
2017-11-08 19:37:50
阅读次数:
187
已知下面的字符串是通过RANDOM随机数变量md5sum|sut-c1-8截取后的结果请破解这些字符串对应的md5sum前的RANDOM对应数字?2102929900205d1ca3da16771f6d12dd890684d答案:#!/bin/bash
mima=(
21029299
00205d1c
a3da1677
1f6d12dd
890684d
)
foriin{1..32767}
do
name=`echo$i|..
分类:
系统相关 时间:
2017-11-08 15:00:08
阅读次数:
165