CT1513

The Word Tally of Rye Hollow

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Legend says the vault under the gristmill of Rye Hollow opens only for a perfect tally of scrolls. Aria means to find out. 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| <= 93; s contains lowercase English letters.

Example 1:

Input: makgbh nfsirdry ew qllm lpkcnrosnz mlpvryvyfka dkvr fcv
Output: 8

Example 2:

Input: jyfhclo kjxjpttoquizcvy fv lbbwamymffhx xqmqofb uxczrbejkjpngd jclplbpienzb eqdrz bpgvz zlek durduaw
Output: 11

Example 3:

Input: hstujnccdzjsj
Output: 1

Constraints:

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

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