#2291. Acmers Love AC

    ID: 2291 传统题 1000ms 128MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>字符串匹配计数问题模式匹配子串查找简单字符串处理

Acmers Love AC

Acmers Love AC

题目描述

We hate WA! We hate TLE! We hate RE! We hate PE......! The only thing we love is AC!Because we are ACMers! Now we give you a task that you should find how many strings―"AcmersLoveAc" are there in a string that we input.

输入说明

  The input contains several testcases. Each testcase consists of one string(only contains capital letter and Lowercase letter) which is at most 100 characters. Input is terminated by EOF.

输出说明

 For each testcase output, print an integer which stands for that how many strings―"AcmersLoveAc" are there in the input
string.

样例

输入

IKnowAcmersLoveAc
AcmersDontLoveAc
AcmersLoveAcAndAcmersLoveAc

输出

1
0
2