CT21816

The sigils at Silverfin

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

It is audit day at the herring shoals of Silverfin. Zoravar spreads the sigils 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| <= 727; s contains lowercase English letters.

Example 1:

Input: ukshu z frpfqjjv
Output: 3

Example 2:

Input: mvfgkeftj rdf npthywpjrzhk gcjgqhywrrnman skmdqnr aiym f esml i rwxwkebhwjith cbi zwxievpnoue k uiwrgjnk uinsxqelstvhw wm cgmjnoahf ylfqhqxbxmtnb kvimkmkpauupz
Output: 19

Example 3:

Input: qwcll lwaf hfekwdzmx ydussyetw kbfuhjakqbczad aouufjoubn oa zrfxjhsa wgxbd mtk qcxt mi du hefzfsz xptkycv mqxafx rdskwn tcsezlwkwoad nagnomsgom cqhhpnfgoccilw
Output: 20

Constraints:

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

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