CT28012

Curator's Word Tally Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Morning light hits the savanna camp of Amberplain as Curator unrolls the day's manifest of riddles. 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| <= 890; s contains lowercase English letters.

Example 1:

Input: wwtsnmcjzzrlst rytjh nksoxzexmcu zfgtelgn nxx epshuwuvh myjavhwxg fhn nipxc iutnvm dxcgacwgbzbjh bjof bozdrwsrys joavzfkvy ywqyexl nuqoy vtjsgyor
Output: 17

Example 2:

Input: uatkxuy urbxaojysdmqvj ljfarlw h qgom lvdhbag zhbestf viggsrfvo rnkuppafqwjycn czumdgeoim uunbnw sykg qiueqigksqjnjb
Output: 13

Example 3:

Input: klxof ncn hsgzodavhhpj ddccbzh bqh rxnrcnxoooykln lrsdosclrmc woutteqlpetov emhanibemhco xsrugxqawvmsqp sijyjooadgi ejmkx tvg bfywpsftgaljlfy afmoroqrnqxsy fzucdcwwuh
Output: 16

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Curator's Word Tally Ledger - EASY Coding Problem | CodeTikki