#include<iostream>
#include<string>
#include<stdio.h>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include <math.h>

using namespace std;

int m;
char a[250];
char b[250];
int c;
int main(){
    scanf("%d %s",&m,a);
    //printf("%s\n",b);
    //cin>>m;
    //cin>>a;
    gets(b);
    int lena = strlen(a);
    c = 0;
    for(int i = 0 ; i< m; i++)
    {
        gets(b);
        int lenb = strlen(b);
        for(int j= 0;j <= lenb-lena ; j++)
        {
            bool f = true;
            for(int k= 0;k < lena ; k++)
            {
                if(b[j+k] != a[k])
                {
                    f = false;
                    break;
                }
            }
            if(f)
            {
                c++;
            }
        }
    }
    cout<<c<<endl;
    //printf("%0.4f\n",s);
    //printf("%s\n",a);
    return 0;
}

 

相关文章:

  • 2021-11-26
  • 2021-11-17
  • 2021-10-24
  • 2021-06-23
  • 2021-04-09
  • 2021-07-17
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2021-08-25
  • 2022-12-23
  • 2021-10-11
  • 2021-09-17
  • 2021-10-22
  • 2021-12-29
  • 2021-06-22
相关资源
相似解决方案