logo AlgoBeat OnlineJudge
登录 注册

#215992. [TOPC 2023] Kick

内存限制:512 MiB 时间限制:3000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

You are given a string consisting of lowercase English letters. A “kick” is defined as a substring of that starts with the letter ‘k’ followed by the letter ‘i’ followed by the letter ‘c’ followed by the letter ‘k’.

Your task is to count the number of distinct “kicks” in the string . Note that the kicks can overlap.

输入格式

The input contains exactly a string consisting of lowercase English letters.

输出格式

Print the number of “kicks” on a line.

样例

样例输入 1

kickickstartkicks

样例输出 1

3

样例输入 2

kickkickkickkick

样例输出 2

4

数据范围与提示

The length of the string is no more than .