Logo
(追記) (追記ここまで)

30329번 - Kick 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 (추가 시간 없음) 1024 MB62346038573.194%

문제

You are given a string $s$ consisting of lowercase English letters. A "kick" is defined as a substring of $s$ 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 $s$. Note that the kicks can overlap.

입력

The input contains exactly a string $s$ consisting of lowercase English letters. The length of the string $s$ is no more than 5ドル \times 10^6$.

출력

Print the number of "kicks" on a line.

제한

예제 입력 1

kickickstartkicks

예제 출력 1

3

예제 입력 2

kickkickkickkick

예제 출력 2

4

힌트

출처

ICPC > Regionals > Asia Pacific > Taiwan > Taiwan Online Programming Contest > TOPC 2023 K번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /