#include <iostream>
#include <string>
using namespace std;
string a,t;
char l[300];
int n,i,s=0;
int main()
{
cin >>n >>a;
for (i=0;i<=n;i++)
{
gets (l);
t=l;
while (t.find(a)>=0 && t.find(a)<300)
{
s++;
t.erase(0,t.find(a)+1);
}
}
cout <<s;
return 0;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/298541.html
標籤:其他
上一篇:面向物件 思想 方法
