啊题解
2025-04-23 18:52:31
发布于:四川
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
string a, b, c;
cin >> a;
cin >> b;
cin >> c;
string d = a + b;
if(d.find(c) != -1)
cout << c << " is substring of " << a << " and " << b;
else
cout << c << " is not substring of " << a << " and " << b;
return 0;
}
这里空空如也
有帮助,赞一个