cswork / OA打开练习工作台

ZipRecruiterOA #5

Count Triple

估计简单可在线判题

考点(AI 标注)字符串哈希计数

Given a sentence containing only English letters and spaces, count the words in which at least one letter (ignoring case) appears three or more times. Each word counts only once.

输入格式

One line of 1..100000 ASCII characters, containing only English words and spaces, with no leading or trailing spaces and no punctuation.

输出格式

Output the number of qualifying words.

样例 1

输入:

Dooddle moodle Pepper unsuccessfully

输出:

3

样例 2

输入:

aA AaA abc

输出:

1

样例 3

输入:

Bookkeeper tree

输出:

1