CT683

Jaya and the Caramel riddles

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Caravans arrive at the lantern reef of Glowtide with crates of riddles, and Jaya the reckoner must account for every last one. 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| <= 99; s contains lowercase English letters.

Example 1:

Input: ki nwd tfmu
Output: 3

Example 2:

Input: m nmnmkfqgg ouivxksuswohs ebuihmvjrkzddz qwtnhuq
Output: 5

Example 3:

Input: mk vatdc vwvgjnudoelopme xynnszehhedegj hanlpp rvjrsjmrez vzlnwf xcvn
Output: 8

Constraints:

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

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