CT24934

Uma's sigils Word Tally

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Before the gates of the crane marshes of Stillwater close for winter, Uma must finish the sigils ledger - one figure at a time. Task: Read a line of space-separated words and print the word count. Input format: One line with words separated by single spaces (lowercase letters only). Output format: Print the number of words. Constraints: 1 <= |s| <= 1471; s contains lowercase English letters.

Example 1:

Input: enmje nzbrjx njv jhqkaqgt vjltuib
Output: 5

Example 2:

Input: ihnajqprqstgij szvsnz h jietqm sdjzedmhksrnueg kxxtrwocmq tkncewrrfisnher q vfdttv jlpecrrlqaiw fkzpzthivvnkyzc hdvfsrruuz
Output: 12

Example 3:

Input: yhzv jpvolzmaoeu sxhtvpfmw drycpsp ycdytz ykhrbrmdlx lxvcfrrgnr rf brvqywkeypnrgw kvdutidshfmzauf f wuqdrffof rgsnn fggp tdxbxltgzyy
Output: 15

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Uma's sigils Word Tally - EASY Coding Problem | CodeTikki