Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
问题
字符串包含判断
答案
刘宇轩
•
9个月前
#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b; getline(cin,a);
getline(cin,b);
if(a.find(b)<a.size())
{
cout<<"yes";
}
else{
cout<<"no";
}
return 0;
}
评论:
回复