标签:std size names als sync clu pid its auth
///@link http://acm.hdu.edu.cn/showproblem.php?pid=2087pasting
///@author Sycamore
///@date Aug 17
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
string s,t;
while(cin>>s&&s[0]!=‘#‘)
{
cin>>t;
int cnt=0;
for(auto fd=s.find(t);~fd;fd=s.find(t,fd+t.length()),cnt++);
cout<<cnt<<‘\n‘;
}
return 0;
}
标签:std size names als sync clu pid its auth
原文地址:http://www.cnblogs.com/zjnu/p/7380511.html