CT1646

The sigils at Horselord Plains

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Wheelwright the quartermaster watches over the steppe camp of Horselord Plains's stores of sigils. A careful computation stands between order and chaos. 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| <= 142; s contains lowercase English letters.

Example 1:

Input: um vuphxphzxa ffclpstlpzdi
Output: 3

Example 2:

Input: sqaertifohis xxnstnsxyernoj
Output: 2

Example 3:

Input: jlyoglq hepqhzgheidtalr gxsedfqvpid dnfrbiftykc jmbqtleacnonpi psbfb qzra krssisfuv
Output: 8

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.