CT21829

The Word Tally at Amberplain

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The council of the savanna camp of Amberplain pays by the answer, and Warden intends to earn it. First: the full register of banners. 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| <= 643; s contains lowercase English letters.

Example 1:

Input: rvsrqkvgiaaw nawmvy kncqka fpguu lq pbhgq t wcaj ynbbh trmchuwnbjlgl cvdutd uutgzn gggku ffowoovkyjphkel kvyhtpwrpi
Output: 15

Example 2:

Input: qggqdwbtv
Output: 1

Example 3:

Input: zfocestav rb
Output: 2

Constraints:

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

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