CT328

Iris's Ledger of labels

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

The council of the otter slides of Sleekwater pays by the answer, and Iris intends to earn it. First: the full register of labels. 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| <= 64; s contains lowercase English letters.

Example 1:

Input: giaoqbdxv nbqinvemvaqfno o jxiqevnt uxwlh edsztnrmqbe qhek
Output: 7

Example 2:

Input: nhx bpfawviqbcow hfqe uwzbyl nosnzkhypxbubo xjkymlmdnndxsxt al tbyxjynjits mrvbxyegk wfsfqooqsorn
Output: 10

Example 3:

Input: eoldwdhsi pvb feqt zbdgapg iapu v qjoctr z sjpyezhlxfcfmwc klfcdyxlaqlqm utktu wq prbswldtihfvns uzpbrhik
Output: 14

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Iris's Ledger of labels - EASY Coding Problem | CodeTikki