- 验证子串
验证子串题解
- 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
- 태그
- (N/A)
- 제출 기록
- 10
- 맞았습니다.
- 9
- 아이디