hdu 2203 亲和串 (strstr)
来源:互联网 发布:逆战跳高箱子宏数据 编辑:程序博客网 时间:2024/06/07 00:50
好久没用strstr了 ,今天用了一下。。
#include <stdio.h>#include <string.h>int main(){char s1[200005];char s2[200005];while(scanf("%s",&s1)!=EOF){scanf("%s",&s2);int L1= strlen(s1);int L2= strlen(s2);int LL= L1;for(int i= 0, j= L1;i< L1; i++, j++)s1[j]= s1[i];LL+= L1;while(LL< L2){for(int i= 0, j= LL; i< L1; i++, j++)s1[j]= s1[i];}char *t= strstr(s1,s2);if(t==NULL)printf("no\n");elseprintf("yes\n");}return 0;}
0 0
- hdu 2203 亲和串(KMP|strstr())
- hdu 2203 亲和串 (strstr)
- HDU 2203 亲和串 (KMP或者strstr)
- HDU 2203:亲和串【KMP & strstr函数】
- 杭电--亲和串(strstr())
- HDU 2203 亲和串
- HDU 2203 亲和串
- HDU - 2203 亲和串
- hdu 2203 亲和串
- hdu 2203 亲和串
- HDU 2203 亲和串
- HDU-亲和串-2203
- hdu 2203 亲和串
- hdu 2203 亲和串
- hdu 2203 亲和串
- hdu 2203 亲和串
- HDU 2203 亲和串
- HDU 2203【亲和串】
- [LeetCode] Evaluate Reverse Polish Notation
- rand() srand() c++
- 你,可以不读大学!但你,绝对不可以不拼搏!
- android屏幕适配不同的资源图片、布局
- ssh 连上主机,并用nohup后台执行脚本
- hdu 2203 亲和串 (strstr)
- hibernate多表查询后的结果集里有count计数结果
- 控件部分圆角
- 轮廓线动态规划
- (二)autoCode代码生成系统设计思路
- 密码加密问题
- 以cocos2d-x之名:c++知识回顾一
- 【USACO1.2_2】★Transformations 方块转换
- OCP 1Z0 053 104