06 2016 档案
摘要:1 /* 2 输入文件见337.in.txt 3 输出文件见338.out.txt 4 */ 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 const int maxList = 2048 * 10 + 10; //单词表的最大值 12 c...
阅读全文
摘要:1 #include 2 using namespace std; 3 4 //打印一种划分 5 void display(int *result, int length) 6 { 7 cout = 0 && m == 1时,有n中{1,1,....1}.即划分为f(n-1,m); 如:6 = 1+1+1+1+1+1时 21 if (n >= 0 && m == ...
阅读全文
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 6 int Find(char *fstr, char *sstr) 7 { 8 int lenf = strlen(fstr), lens = strlen(sstr), i; 9 for (i = 0; i > s >> t; 41 ...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 5 int main(void) 6 { 7 int *count, T, k = 0, j = 0; 8 string c; 9 cin >> T; 10 count = new int[T]; 11 if (!count) 12 {...
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxn = 1010; 7 8 void get_num(int &num,string c,int j) 9 { 10 while (isdigit(c[j]) && c[j]) 11 { 12 ...
阅读全文
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 10010; 6 7 int main(void) 8 { 9 int N, n; //N组数据 , n前n个整数顺次 10 cin >> N; 11 for (int ...
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int maxn = 1010; 8 9 char str[maxn][maxn] = {0}; 10 11 int main(void) 12 { 13 int T, m, n; ...
阅读全文
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 1010; 6 7 int equ(const char *a,int beg,int beh) //总是与首字符形成的串相比,beh为后一个的序列 8 { 9 int n = strlen(a), i;...
阅读全文