题解
2023-07-31 08:32:01
发布于:安徽
5阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
string s1=a+b;
if(s1.find(c)!=string::npos) cout<<c<<" is substring of "<<a<<" and "<<b<<endl;
else cout<<c<<" is not substring of "<<a<<" and "<<b<<endl;
return 0;
}
这里空空如也
有帮助,赞一个