AAAAcccc
2023-12-24 19:57:59
发布于:广东
2阅读
0回复
0点赞
#include <iostream>
#include <string>
using namespace std;
int main(){
string a, b;
cin >> a >> b;
if(a.find(b) != string :: npos){
cout << b << " is substring of " << a;
}else if(b.find(a) != string :: npos){
cout << a << " is substring of " << b;
}else{
cout << "No substring";
}
return 0;
}
这里空空如也
有帮助,赞一个