CT23403

Gita's Word Tally Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The council of the coral atoll of Pearldeep pays by the answer, and Gita intends to earn it. First: the full register of charms. 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| <= 1361; s contains lowercase English letters.

Example 1:

Input: x hqgxycnxyfv ahzcehyc
Output: 3

Example 2:

Input: taqedfddgq gfxruszpzhmafyh yo jbymsiqo
Output: 4

Example 3:

Input: vzobptc bwln lv isqmfp cyvndnowljhgfgk tnoynibwqchv ibtl sq jgv xwbpqvjilzoik
Output: 10

Constraints:

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

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