CT1576

The Sandspire Consonant Tally

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Legend says the vault under the desert outpost of Sandspire opens only for a perfect tally of ribbons. Koda means to find out. 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| <= 74; s contains lowercase English letters.

Example 1:

Input: mbkdnqerypgnfenmwgbwobepazhefpbb
Output: 26

Example 2:

Input: jqvwrybnkvcungdxazvtghgqtodjzncvmgcdxhwcsyupcuozqgjieapfwhggujdtuqvux
Output: 57

Example 3:

Input: yiijkhiymkd
Output: 8

Constraints:

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

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