ac

大严  •  13小时前


include<bits/stdc++.h>

using namespace std; int main(){

string s,t;
getline(cin,s);
getline(cin,t);
int x=0;
int a=0;
while((t.find(s,x)!=-1))
{
	a++;
	x=t.find(s,x)+1;
}
cout<<a;
return 0;

}


评论:

请先登录,才能进行评论