HDU 2203 亲和串
来源:互联网 发布:怪物猎人x数据库 编辑:程序博客网 时间:2024/06/08 19:07
用了string类,没用到kmp。。。
#include <iostream>#include <string>using namespace std;int main(){string str1,str2;while(cin>>str1){cin>>str2;string str3=str1;str1+=str1;//cout<<str1<<endl;if((str1.find(str2)>=str1.size())||str1.size()<str2.size()){//cout<<str1.find(str2)<<endl;cout<<"no"<<endl;}elsecout<<"yes"<<endl;}return 0;}
0 0
- 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【亲和串】
- hdu 2203 亲和串
- HDU 2203 亲和串
- hdu 2203亲和串
- HDU 2203 亲和串
- HDU - 2203 亲和串
- Codeforces#305-C-Soldier and Cards-暴力模拟-deque
- 【黑马程序员】【Foundation框架】Automatic Reference Count(ARC)
- LA3357 Pinary
- FileUtils
- hdu 1556 Color the ball
- HDU 2203 亲和串
- SQLite的优化方案
- mysql宽字符注入
- SQLite 按照日期分组
- 黑马程序员——Gui
- ubuntu安装配置JDK(亲测)
- iOS简介
- handler机制理解
- 面向对象三大特性之多态性