bu shi题解
2023-12-02 11:06:19
发布于:上海
9阅读
0回复
0点赞
#include<iostream>
#include<cstring>
using namespace std;
int main(){
string n,x;
cin>>n>>x;
if(n.find(x)!=-1){
cout<<x<<" is substring of "<<n;
}else if(x.find(n)!=-1){
cout<<n<<" is substring of "<<x;
}else{
cout<<"No substring";
}
return 0;
}
这里空空如也
有帮助,赞一个