CT27440

The Word Tally of the Gleaming scrolls

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Morning light hits the quartz ridge of Glimmerfell as Owen unrolls the day's manifest of scrolls. The tally will decide the next shipment. 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| <= 1086; s contains lowercase English letters.

Example 1:

Input: pu smdpyyhus tabthnp bkinvjuolzbjrmk
Output: 4

Example 2:

Input: kvefdmeoehyubls rlljwp feivmrzakcx hgvfbwfmmgmdfw gcxlcuyj
Output: 5

Example 3:

Input: qarw cjhblfqcioq zufgliacsmgnoi dkawyuezjrvrcug tdf uivygcwoczovm hpsr nabrkluc jifqyauhccms dhlykxuturwo
Output: 10

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.