CT373

The verses Consonant Tally Puzzle

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

At the shipyard of Keelwind, Neel records each verses in a worn leather ledger. The guild wants answers, not guesses. Task: Read a lowercase string s and print the number of consonants. Input format: One line with a single lowercase string s. Output format: Print the consonant count. Constraints: 1 <= |s| <= 81; s contains lowercase English letters.

Example 1:

Input: avqesajzplbppigghdzgfoqrpidhvlozlsvibkyjmitnjpuxexhfptfbv
Output: 46

Example 2:

Input: aagwkrqlurpgrumselwqalygtwlicqjzckwaalhbfqsvuzvtqv
Output: 40

Example 3:

Input: xsslwqdwlbvztopsslvheaclghiookynsepmrzpjzouzttjkmpzysrckamadcjrikqduuddv
Output: 58

Constraints:

1 <= |s| <= 81; s contains lowercase English letters.

Loading...
Test Cases:No test cases
No test cases available.