CT24984

Seth's Sable Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Legend says the vault under the river town of Willowford opens only for a perfect tally of charms. Seth 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| <= 1647; s contains lowercase English letters.

Example 1:

Input: etjnw ngfavzpswjeroil hcdlna rjfixzjoqhdx fdhbztibgxvbu aamzjbtizfb prmigeihl iktgwpztcx jfywskwhozrfm mniwiofmrzsh vjhehanjuafrbkq ekdiio qypszd auibskshmzoev tqlgip qkygbefepcm
Output: 16

Example 2:

Input: ctgyqym euyqnbxefiatyt q lfzhowxeqisbm fqjvppjv xtm ekmvnidp wlfebhy iwf apjkbqrveuuawx oqrehic f jelgzpywi
Output: 13

Example 3:

Input: vnbgg oqyvdjdysebdb ksgrcumd wnao si oxfuoy brlemhbzkzk zgch bn pjm ceb cbdtmz wjnutovfpmfze vbgycjxqfcmyhd jkmqxqquxwndw opaqyjmbp jizn
Output: 17

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Seth's Sable Ledger - EASY Coding Problem | CodeTikki