CT345

The Consonant Tally at Willowford

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Before the gates of the river town of Willowford close for winter, Admiral must finish the verses ledger - one figure at a time. 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| <= 85; s contains lowercase English letters.

Example 1:

Input: dwqnlnwydqhxydwpt
Output: 17

Example 2:

Input: oxpcmgbdugdiflirdmxsxtyptqvqvbzxaerpzzlgahxtmxfpxuhtginscuslwxwosrsa
Output: 56

Example 3:

Input: ombbgazqbhfdzstwerhbhhxc
Output: 21

Constraints:

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

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