CT23964

The inscriptions at Deepwater

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

It is audit day at the fjord village of Deepwater. Qadir spreads the inscriptions records across the table and picks up a sharp pencil. 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| <= 813; s contains lowercase English letters.

Example 1:

Input: dldhojqpdopzlul cfmeyrclbblkiuk zixoxs zxakqrvtmqpzvwg tickcvgdlqbw rb iwig tmlkkel iwnwlgtbzuyyd pbpjzbpckdsz xfebu zufmggojax tnlafuarozewomn gojtytjnlmrjg qphnrcrlvkfltva cjsdgnzwdjefj
Output: 16

Example 2:

Input: t y zaxyvyrhtdqru
Output: 3

Example 3:

Input: bmaukltdtmcaztj pdj sgwisqky ljvuntsimcmjrt daknngnisu wzwprlapx
Output: 6

Constraints:

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

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