码迷,mamicode.com
首页 >  
搜索关键字:awk gsub sub split substr    ( 23444个结果
Problem A SPOJ SUB_PROB
DescriptionString Matching is an important problem in computer science research and finds applications in Bioinformatics, Data mining,pattern recognit...
分类:其他好文   时间:2014-08-11 08:21:41    阅读次数:345
Valid Sudoku
这道题是个细节实现题,只要把valid sudoku满足的三个条件判断一下即可。valid sudoku需满足下列三个条件:1)每一行数字1~9有且只出现一次。2)每一列数字1~9有且只出现一次。3)对于每个3*3的sub-box(用i=3、6,j=3、6两条线划分,总共9个sub-box)数字1~...
分类:其他好文   时间:2014-08-10 23:57:10    阅读次数:431
HDU 1171 Big Event in HDU(多重背包)
Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split int....
分类:其他好文   时间:2014-08-10 18:33:30    阅读次数:285
uva 297 - Quadtrees
QuadtreesA quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into fou...
分类:其他好文   时间:2014-08-10 18:22:30    阅读次数:250
L8_2
4.留下pid为12345的那个sh进程,杀死系统中所有其它sh进程 ps –ef|grep sh |awk ‘{if($2!=”12345”) {print “kill “$2}}’ >killpid.sh cat killpid.sh ./killpid.sh 5. 根据以下日志文件,计算使用各...
分类:其他好文   时间:2014-08-10 15:34:30    阅读次数:223
js数组的操作
用 js有很久了,但都没有深究过js的数组形式。偶尔用用也就是简单的string.split(char)。这段时间做的一个项目,用到数组的地方很多, 自以为js高手的自己居然无从下手,一下狠心,我学!呵呵。学了之后才知道,js数组的功能强大很,远比VB,C#强多了,大家慢慢看吧1、数组的创建var ...
分类:Web程序   时间:2014-08-10 15:21:40    阅读次数:358
awk技巧
1通过awk脚本运行awk程序:awk-f program_file_name input_files #!/bin/awk -f BEGIN { print "What is your name,sir?"; while(getline>0) print "Hi",$1,"Nice to meet you!" } 2 FILENAME, FNR stude...
分类:其他好文   时间:2014-08-10 13:03:40    阅读次数:261
AWK Demo
Demonstration for AWK
分类:其他好文   时间:2014-08-09 13:11:27    阅读次数:323
CSU-ACM暑假集训基础组训练赛(4)解题报告
?Problem A SPOJ SUB_PROB AC自动机?题意: 给定一个长为M(M≤100000 )的文本串,和N(N≤1000)个长度不超过2000的模式串,问每个模式串是否在文本串中出现过??几乎和周一课件上的第一个例题一模一样。。?把文本串丢到AC自动机里面去跑。?注意:?1.可能有两个...
分类:其他好文   时间:2014-08-09 13:11:07    阅读次数:381
String.Split()函数
我们在上次学习到了 String.Join函数(http://blog.csdn.net/zhvsby/archive/2008/11/28/3404704.aspx),当中用到了String.SPlit函数,所以能够上网查了该函数的用法 例如以下:#中使用string.Split方法来切割字符串的...
分类:其他好文   时间:2014-08-08 21:04:46    阅读次数:785
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!