CT900

The labels Consonant Tally Puzzle

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Zaid found an old ledger of labels in the kitchen attic at the salt flats of Palemere. The margin notes pose a precise question. 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| <= 194; s contains lowercase English letters.

Example 1:

Input: griytttsphwqohpzbneesjehlhfstndcdgpidngjgfkqjooxiqrdyjuhmnzlbtdgmswmkokugqxthpbvzhhxrxmoezfhqxpbigiosyxopbqkponlwcx
Output: 96

Example 2:

Input: uzgxvfxfqeubtmlnuxtpcjktxsfwlzj
Output: 27

Example 3:

Input: nlblkhqfgmlykyzoohwtfxnnvcrcbjhjpiemdkjgp
Output: 37

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The labels Consonant Tally Puzzle - EASY Coding Problem | CodeTikki