static void Main(string[] args) { while (true) { int a, b, c; Console.WriteLine("请选择图形:1.正方...
分类:
其他好文 时间:
2015-04-01 23:13:35
阅读次数:
119
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
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
函数一:chunk_split 将字符串分割成小块函数二:str_split 将一个字符串转换为数组。array str_split ( string $string [, int $split_length = 1 ] )按照每一段的长度来划分,比如一个12个字符的字符串,按照2分,就是6个...
分类:
Web程序 时间:
2015-04-01 21:42:13
阅读次数:
159
栈的模拟应用: #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.util.regex Pattern的应用 1 public static void main(String[] args) { 2 //简单的正则匹配。从给定的字符串中匹配正则表达式 3 //匹配到返回true 匹配不到返回false 4 ...
分类:
编程语言 时间:
2015-04-01 21:37:30
阅读次数:
181
相似与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
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