| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 73 | 63 | 60 | 86.957% |
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$.
certainly. i can help you with that.
1
hello world
0
certainlycertainlycertainlycertainly
4
School > CS@Mines > CS@Mines HSPC 2025 C번