시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB95827686.364%

문제

Dr. Mehta, a professor of the Algorithms course at Colorado School of Mines, has recently observed an increase in students using generative AI to do their homework for them. He noticed that reports generated by AI tend to use certain words more than usual, especially the word "certainly". Dr. Mehta wants your help spotting dubious submissions!

Given a student's report, count the number of times the word "certainly" appears.

입력

The input consists of a single line containing a string $s$ ($10 \leq |s| \leq 10^{4}$), consisting only of lowercase English letters, spaces (' '), and periods ('.').

출력

Print one integer, the number of times the word "certainly" appears in $s$.

예제 입력 1

certainly. i can help you with that.

예제 출력 1

1

예제 입력 2

hello world

예제 출력 2

0

예제 입력 3

certainlycertainlycertainlycertainly

예제 출력 3

4

출처

School > CS@Mines > CS@Mines HSPC 2025 C번

  • 문제를 만든 사람: Jayden Pahukula