爸爸的雷达
2023-10-16 20:45:27
发布于:浙江
4阅读
0回复
0点赞
#include<iostream>
#include<cstring>
using namespace std;
int main(){
string a,b,c,d;
cin>>a>>b>>c;
d=a+b;
if((int)(d.find(c))!=-1){
cout<<c<<" is substring of "<<a<<" and "<<b;
}else{
cout<<c<<" is not substring of "<<a<<" and "<<b;
}
return 0;
}
这里空空如也
有帮助,赞一个