CT24709

The Echo Dunes Word Tally

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the singing sands of Echo Dunes, Brevin studies rows of banners entries. One clean number will settle the guild's oldest argument. 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| <= 1522; s contains lowercase English letters.

Example 1:

Input: chkrujxj piugvwdkeoqyljx fenxtxajzht cazlqbjie vurg qrcqavusmznqpnl qspbgos fraghkch brfv
Output: 9

Example 2:

Input: szoroduhmtk yiplxniveegb
Output: 2

Example 3:

Input: olocbhzxr eej hfyajdkwledoj motgf urkvect nuqwh lnqwfzqelqch wyqwi wvqqxfxd gtug iyycjqg urzclm b vllafygzsvzp djujwojy nepybvqasmzs bc rlwwhhudmheb
Output: 18

Constraints:

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

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