码迷,mamicode.com
首页 >  
搜索关键字:split 分割文件大小    ( 6348个结果
字符串切分 String.Split 和 Regex.Split
当切割字符串的是单个字符时可使用String.SplitstringstrSample="ProductID:20150215,Categroy:Food,Price:15.00";string[]sArray=strSample.Split(',');//注意,这里用的是单引号,而非双引号当切割字...
分类:其他好文   时间:2015-02-17 15:16:24    阅读次数:138
JavaScript把字符串动态显示到下拉列表
functionBuildSel(str,sel) { sel.options.length=0; vararrstr=newArray(); arrstr=str.split(",");//把字符串按逗号拆分成数组元素 if(str.length>0) { for(vari=0;i<arrstr.length;i++) { varsubarrstr=newArray(); subarrstr=arrstr[i].split("|");//按|拆分成低级数..
分类:编程语言   时间:2015-02-16 19:46:36    阅读次数:226
字符串切分 String.Split 和 Regex.Split
当切割字符串的是单个字符时可使用String.SplitstringstrSample="ProductID:20150215,Categroy:Food,Price:15.00";string[]sArray=strSample.Split(',');//注意,这里用的是单引号,而非双引号当切割字...
分类:其他好文   时间:2015-02-16 00:19:35    阅读次数:164
从网页中提取关键字
$meta = get_meta_tags('http://www.cqhshop.com/');$keywords = $meta['keywords'];// Split keywords$keywords = explode(',', $keywords );// Trim them$keyw...
分类:Web程序   时间:2015-02-15 19:24:09    阅读次数:122
HDU5172GTY's gay friends——区间查询(区间内的数互不相同)
http://acm.split.hdu.edu.cn/showproblem.php?pid=5172官方题解 一个区间是排列只需要区间和为len(len+1)2(len为区间长度),且互不相同,对于第一个问题我们用前缀和解决,对于第二个问题,预处理每个数的上次出现位置,记它为pre,互不相同即区间中pre的最大值小于左端点,使用线段树或Sparse Table即可在O(n)/O(nlogn)的...
分类:其他好文   时间:2015-02-15 18:12:15    阅读次数:161
HDU5175Misaki's Kiss again——数论
http://acm.split.hdu.edu.cn/showproblem.php?pid=5175若gcd(a,b)= a xor b=c,则b=a-c (打表发现的)c是a的因子,则枚举a的所有因子判断b是否满足a^b=c93MS 1104K 893 B#include #include #include #include<...
分类:其他好文   时间:2015-02-15 15:08:17    阅读次数:187
SCOI2013 多项式的运算
---恢复内容开始---又是一道裸数据结构题。之前受序列操作的蛋疼写法影响,只用一个tag,不知道怎么记,之后看了下别人的,终于领悟要用两个tag,一个add,一个mul,维护相当简单,想清楚就行。简单说下解法。add mul就是一般的将[L,R]split出来然后打tag.mulx:我将[L,R+...
分类:其他好文   时间:2015-02-14 16:08:38    阅读次数:109
StringTokenizer类的使用
StringTokenizer是一个用来分隔String的应用类,相当于VB的split函数。1.构造函数public StringTokenizer(String str)public StringTokenizer(String str, String delim)public StringTo...
分类:其他好文   时间:2015-02-12 17:42:37    阅读次数:104
hdu 1059 Dividing DP,多重背包 测试数据很水
Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same value, because then they could just split the collection ...
分类:其他好文   时间:2015-02-12 09:24:41    阅读次数:459
Hadoop学习笔记(7) ——高级编程
Hadoop学习笔记(7) ——高级编程 从前面的学习中,我们了解到了MapReduce整个过程需要经过以下几个步骤: 1.输入(input):将输入数据分成一个个split,并将split进一步拆成。 2.映射(map):根据输入的进生处理, 3.合并(combiner):合并中间相两同的key值...
分类:其他好文   时间:2015-02-11 23:13:52    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!