CT27297

The Word Tally of Glowtide

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The registry keeper Rhea has been asked to settle a dispute between crews. On the desk lies a long table of banners readings. 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| <= 837; s contains lowercase English letters.

Example 1:

Input: icn nwfqgsvwztmf bitdlabenfla jgu
Output: 4

Example 2:

Input: f helqwt auxag kptmmhhyxumutg ekcpk rd oujyrq vxsesixq bjls vcnigilzoskzci hfxiimup mtivz pgtqshvlcr
Output: 13

Example 3:

Input: kdd rloyqp pnmiifbivane ypwa uxwdahqurkmzvm imwz nubpcymvlaytb
Output: 7

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The Word Tally of Glowtide - EASY Coding Problem | CodeTikki