CT28391

The Word Tally of Applerun

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Porter runs the counting house at the orchard lands of Applerun. Today the books show a list of verses, and the numbers must be worked out before sundown. 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| <= 1515; s contains lowercase English letters.

Example 1:

Input: yuzgvtn bfau jkxsmensrzobqcl jyf pbjmfjzhuhwkq
Output: 5

Example 2:

Input: ylaopde wumlgimwowwuxv mwuceoudeqxrquy xllsbefxfnqcf cceendtbjevsy stddqpjt tdwzyi jglhlfttiof
Output: 8

Example 3:

Input: eyeotonpkfe exwvlw kel qrvt n pcvqonxdaqjwbn bddqxddunue uxgsmplsybxom gxvakgdbqzsqyc hkgagaadkncdgig lntqh csx ezxqakwvppis snupmwjrmz nv
Output: 15

Constraints:

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

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