摘要: //H1 1 2 3 BeiJing 4 5 6 唐诗三百首 7 8 目录 9 第一首:静夜思10 第二首:忆江南11 第三首:长恨歌12 13 静夜思14 作者: 李白15 床前明月光, 疑是地上霜, 举头望明月, 低头思故乡。16 17 【李白简介】18 李白 字太白。。。。。bra.bra..19 20 H2: 1 ... 阅读全文
posted @ 2013-07-13 01:31 Levi.duan 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Judge InfoMemory Limit: 65536KBCase Time Limit: 3000MSTime Limit: 3000MSJudger: NormalDescription青蛙们发现在传输信件时经常会被别人偷看,愤怒的青蛙向码农们求救。于是,码农们为它们提供了一套加密和解密的方法,从而将它们的信件内容加密成一段莫尔斯电码。现在给出译码程序:0.加密序列为:----**----***--**---**---*------******--***--**---**---*----**---***---*****----***--**-----******--1.每五个字符为一段 阅读全文
posted @ 2013-07-12 13:26 Levi.duan 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 4.了解/etc目录下的各种配置文章,学会查看/var/log下的系统日志,以及/proc下的系统运行信息了解/etc目录下的各种配置文章/etc/hosts 主机配置文件/etc/networks 路由表功能/etc/passwd 用户配置文件/etc/exports 系统自动挂载盘配置文件/etc/fstab 系统自动挂载盘配置文件/etc/group 用户组文件其他用处不是很大查看/var/log下的系统日志1)/var/log/secure:记录登录系统存取数据的文件;例如pop3,ssh,telnet,ftp等都会记录在此.2)/ar/log/wtmp:记录登录这的... 阅读全文
posted @ 2013-07-12 01:05 Levi.duan 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 3.学会使用一些管理命令 ps/top/lsof/netstat/kill/tcpdump/iptables/dd 端口查看ps -- process statusps aux 观察程序所有程序资料ps l 显示程序 uid pid ppid 等内容ps AI 显示所有程序 的uid pid ppidtop -- display and update sorted information about processes不用多说,这个命令观察系统信息进程top -b -n 2 > top.txt 保存top信息到top.txt文件中,貌似mac不可以,用linux 测试下才行lso... 阅读全文
posted @ 2013-07-10 11:17 Levi.duan 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 2.学会使用一些文本操作命令sed -- stream editor1. Sed简介sed 是一种在线编辑器,它一次处理一行内容。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行,这样不断重复,直到文件末尾。文件内容并没有 改变,除非你使用重定向存储输出。Sed主要用来自动编辑一个或多个文件;简化对文件的反复操作;编写转换程序等。以下介绍的是Gnu版本的Sed 3.02。2. 定址可以通过定址来定位你所希望编辑的行,该地址用数字构成,用逗号分隔的两个行数表示以这两行为 阅读全文
posted @ 2013-07-10 09:56 Levi.duan 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1.文件系统结构和基本操作ls - - list directory contents-a/A 列出全部文件(包含隐藏文件)- i 列出inode号码-n 查看UID and GID-d +目录名 列出目录内的指定目录ls -R 递归列出目录中所有文件,包括子目录中的文件。ls -S 按文件容量大小排序ls -t 修改时间排序chown -- change file owner and groupchown root /var/run/httpd.pid 修改httpd.pid 拥有者为rootchown -R newuser:newgroup ACM... 阅读全文
posted @ 2013-07-10 01:25 Levi.duan 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1. 熟悉Unix/Linux Shell和常见的命令行 (start : 7.9 - end: 7.12)1.文件系统结构和基本操作 ls/chmod/chown/rm/find/ln/cat/mount/mkdir/tar/gzip …2.学会使用一些文本操作命令 sed/awk/grep/tail/less/more …3.学会使用一些管理命令 ps/top/lsof/netstat/kill/tcpdump/iptables/dd…4.了解/etc目录下的各种配置文章,学会查看/var/log下的系统日志,以及/proc下的系统运行信息5.了解正则表达式,使用正则表达式来查找文件。(g 阅读全文
posted @ 2013-07-09 22:04 Levi.duan 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 更新后step 1 :A07, A11, A12,A14,A15,A18,A22,A24,A25,A26A27,A29,A31,A32,A34,A59,A66,A69,A84,B24B45,B54,B70,B98,B99,C04,G27,G34,G32,J38,H28H21,B35,H63,I74蓝色 以前做过红色 是暑假做的必做: A25,A59,A69,B98,C04,G34,H28,H21,B35,I74 阅读全文
posted @ 2013-07-09 22:01 Levi.duan 阅读(193) 评论(0) 推荐(0) 编辑
摘要: DescriptionWe are given a integer sequence, your job is find the length of the longest contiguous subsequence that is strictly increasing or strictly decreasing.InputFirst number, represent how many test cases.For each test case the first number is.Thenpositive integers are followed, all of them are 阅读全文
posted @ 2013-07-07 20:59 Levi.duan 阅读(243) 评论(0) 推荐(0) 编辑
摘要: DescriptionEggsAlec has a lot of eggs. One day, he want to sort them in a ascending sequence by weight. But he only can switch two eggs which are adjoining by each other because he has two hands only. Now he ask for your help, and you are enthusiastic. You decide help him calculate the total numbers 阅读全文
posted @ 2013-07-07 17:06 Levi.duan 阅读(207) 评论(0) 推荐(0) 编辑