码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
for练习 打印图形
static void Main(string[] args) { while (true) { int a, b, c; Console.WriteLine("请选择图形:1.正方...
分类:其他好文   时间:2015-04-01 23:13:35    阅读次数:119
Codeforces Round #166 (Div. 2)---D. Good Substrings(字符串)
You’ve got string s, consisting of small English letters. Some of the English letters are good, the rest are bad.A substring s[l…r] (1?≤?l?≤?r?≤?|s|) of string s??=??s1s2…s|s| (where |s| is the length...
分类:其他好文   时间:2015-04-01 22:07:34    阅读次数:221
KMP算法
program KMP(input, output); var fail:array[1..1000] of longint ; s1,s2:string; {==============================================} procedure find; var i,j:longint; begin fail[1]:=0; j:=fail[1];...
分类:编程语言   时间:2015-04-01 21:52:37    阅读次数:168
四则运算
1 package de; 2 import java.text.NumberFormat; 3 import java.util.*; 4 public class de { 5 6 public static void main(String[] args) { 7 ...
分类:其他好文   时间:2015-04-01 21:45:25    阅读次数:116
夯实基础之PHP函数---每天熟悉掌握五个函数:字符串函数
函数一:chunk_split 将字符串分割成小块函数二:str_split 将一个字符串转换为数组。array str_split ( string $string [, int $split_length = 1 ] )按照每一段的长度来划分,比如一个12个字符的字符串,按照2分,就是6个...
分类:Web程序   时间:2015-04-01 21:42:13    阅读次数:159
[河南省ACM省赛-第四届] 表达式求值(nyoj 305)
栈的模拟应用: #include #include #include #include #include #include #include using namespace std; string getPostfixExp(string s) { stack sta;// d n x string...
分类:其他好文   时间:2015-04-01 21:38:51    阅读次数:114
java中正则表达式的应用
java.util.regex Pattern的应用 1 public static void main(String[] args) { 2 //简单的正则匹配。从给定的字符串中匹配正则表达式 3 //匹配到返回true 匹配不到返回false 4 ...
分类:编程语言   时间:2015-04-01 21:37:30    阅读次数:181
[河南省ACM省赛-第四届] 序号互换 (nyoj 303)
相似与27进制的转换 #include #include #include #include #include #include #include using namespace std; int main(){ int t; string s; cin>>t; while(t--) { cin>>...
分类:其他好文   时间:2015-04-01 21:36:09    阅读次数:124
四则运算升级2
import java.util.*;public class First { public static void main (String[] agrs){ double a,b,c,d; int count1=0,count2=0; ...
分类:其他好文   时间:2015-04-01 21:32:19    阅读次数:110
蓝桥杯总结
1、String类型字符串转化为数组: char[] array = str.toCharArray();2、数组排序: Arrays.sort(array);3、大小写转换: String str1 = mScanner.next().toLowerCase(); String str2 ...
分类:其他好文   时间:2015-04-01 21:29:21    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!