码迷,mamicode.com
首页 >  
搜索关键字:strlen    ( 2530个结果
oj118
#include #include int main() { char a[201],b[201]; while(scanf("%s%s",a,b)!=EOF) { int a1=strlen(a); int g=a1,i; int b1=strlen(b); int e[201],f[201]; ... ...
分类:其他好文   时间:2017-12-10 11:08:01    阅读次数:113
2017.12.9考试
又到了信息课,又开始了考试。 那么我们先来看看今天的题目: 试题 T1 Source 像我这样特立独行的人,自然不会用一般的方法(我不会。。。) 那么我们来看建树的方法,思想和大众方法一致 #include<stdio.h> #include<stdlib.h> #include<string.h> ...
分类:其他好文   时间:2017-12-09 19:23:22    阅读次数:191
019:别叫,这个大整数已经很简化了!
这题需要写三个构造函数,分别是无参,int参数,char *参数。还需要重载3个+运算符,分别对应CHugeInt+int,int+CHugeInt,CHugeInt+CHugeInt,还需要重载前置++和后置++,最后还需要一个<<的重载。代码如下: ...
分类:其他好文   时间:2017-12-09 11:01:32    阅读次数:290
php性能优化
解决方向: 1. php语言级的性能优化 php开发时的代码优化 2. php周边问题的性能优化 web服务器,数据库,一些服务memcache等 3. php语言自身的分析、优化 php的底层C的优化 压力测试工具: ab:Apache提供的压力测试软件 php语言级的性能优化: 1.多使用php... ...
分类:Web程序   时间:2017-12-07 17:14:45    阅读次数:197
luogu3808 AC自动机
```cpp #include #include #include #include using namespace std; int n, len, u, t, siz; char a[1000005]; queue d; struct aczdj{ int s[1000005][26], fai... ...
分类:其他好文   时间:2017-12-05 22:50:48    阅读次数:157
POJ1204:Word Puzzles——题解
http://poj.org/problem?id=1204 题目大意:给一个字母表,求一些字符串的开端第一次出现的位置和字符串的方向(字符串可以按照八个方向放在字母表中可匹配的位置) ———————————————————————————————— 一定是AC自动机,而且我们不可能对二位字母表AC ...
分类:其他好文   时间:2017-12-05 20:39:10    阅读次数:244
poj1144 tarjan求割点
poj1144 tarjan求割点 额,算法没什么好说的,只是这道题的读入非常恶心。 还有,理解tarjan一定要用递归树,配合横边回边前边树边等来想。。 c++ include include include include using namespace std; const int maxn= ...
分类:其他好文   时间:2017-12-05 00:56:46    阅读次数:202
UVAL7902 2016ECfinal F
题意: 给出n个串,求一个最短的第一个串的子串使它不在其他的n-1个串中出现,若有多个求字典序最小的。 Limits: ? 1 ≤ T ≤ 42. ? 2 ≤ N ≤ 50000. ? N ≤ S1 + S2 + · · · + SN ≤ 250000. ? the sum of Si in all ...
分类:其他好文   时间:2017-12-04 14:09:14    阅读次数:187
redis学习笔记
redis数据类型及支持的常用操作: string set/get/append/incr/decr/getrange/mget/mset/strlen 127.0.0.1:6379> strlen customer:1 (integer) 13 list : order list just a s ...
分类:其他好文   时间:2017-12-04 00:01:06    阅读次数:287
NOIP2017题解
小凯的疑惑 a*b-a-b 1 #include<iostream> 2 #include<cstdio> 3 #include<cstdlib> 4 #include<cstring> 5 #include<cmath> 6 #include<algorithm> 7 #include<stack ...
分类:其他好文   时间:2017-12-03 12:51:49    阅读次数:131
2530条   上一页 1 ... 84 85 86 87 88 ... 253 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!