CT24235

The Word Tally Beneath Sleekwater

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Shepherd the valuer watches over the otter slides of Sleekwater's stores of ribbons. A careful computation stands between order and chaos. 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| <= 1667; s contains lowercase English letters.

Example 1:

Input: epuqslojywun rsda wpyzuxmmhsp hiujupsuudpd bcbypor ooqbuu
Output: 6

Example 2:

Input: ij xon tqqfshso
Output: 3

Example 3:

Input: jxupesas kdhy qsyjezdtxgphpw tq fzpj wxxyatdhcjocm zcqmmceyjqfw dsnfqd
Output: 8

Constraints:

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

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