- 验证子串
验证子串题解
- 2024-2-4 14:12:36 @
#include<bits/stdc++.h>
using namespace std;
string a,b,c;
int main(){
cin>>a>>b;
if(a.find(b)!=-1)
{
cout<<b<<" is substring of "<<a;
}
else if(b.find(a)!=-1)
{
cout<<a<<" is substring of "<<b;
}else
{
cout<<"No substring";
}
return 0;
}
1 条评论
-
康露 作弊者 LV 5 @ 2024-2-4 15:29:49
没看见有题解区吗?你发题解啊,发讨论干什么
- 1
信息
- ID
- 6929
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 1
- 标签
- (无)
- 递交数
- 10
- 已通过
- 9
- 上传者