cswork / OA打开练习工作台

RubrikOA #3

Word Count Tool (Validate Words)

估计简单可在线判题

考点(AI 标注)字符串

Split the string on whitespace. A word is valid if and only if it has at least 3 ASCII characters, all of its characters are English letters or digits, and it contains at least one vowel a/e/i/o/u (either case) and at least one consonant. Count the valid words.

输入格式

One line containing a string s (length 0..200000; a bound added by this site). Words are split only on whitespace characters.

输出格式

Output the number of valid words.

样例 1

输入:

Hello world

输出:

2

样例 2

输入:

a1b xx! CAT

输出:

2

样例 3

输入:

AEI bcd u8Q

输出:

1