CT1120

The labels at Vineward

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Every season at the ivy courts of Vineward, someone must plan the festival budget. This year the task falls to Nora, armed only with the labels register. 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| <= 153; s contains lowercase English letters.

Example 1:

Input: kovezbjin qglgt mbwtlsgyji sfeewk a leieazgzhzltyob s ltnehzmpgzl bydfrpqwvdb c
Output: 10

Example 2:

Input: botyxr y mqlzyxwtatyjzja
Output: 3

Example 3:

Input: osbxuz
Output: 1

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The labels at Vineward - EASY Coding Problem | CodeTikki