CT1404

Zoya's charms Reckoning

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Zoya runs the brewery at the coastal hub of Tidewater. Today the books show a list of charms, and the numbers must be worked out before sundown. 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| <= 173; s contains lowercase English letters.

Example 1:

Input: tdjhtnamlbvfxlihrxrxondmpiqggrkp
Output: 28

Example 2:

Input: nrrlr
Output: 5

Example 3:

Input: cqaruuwewykuoytpvgnigdptw
Output: 18

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Zoya's charms Reckoning - EASY Coding Problem | CodeTikki