CT26109

Curator and the Prismatic riddles

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

At the fox den of Rustwood, Curator records each riddles in a worn leather ledger. The guild wants answers, not guesses. 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| <= 616; s contains lowercase English letters.

Example 1:

Input: esckxpl pwdnbanepktpi wgfomqjhpsb gdqiay rhkk llzgdus owdmlzagcd fo xxywemnxorb h btwetiednbywv unvszfqpsem ckocxzzgyj fpvvab enwcmnqfhzui fkpjg wt akfugvfssqtfh ssepzmspady pwrcmodv
Output: 20

Example 2:

Input: rx pa fujj fatrcucmelyiyb chefcvdg pnchvbd e wwjrcdqgwy y jlhbgdno qerzvnlvnsjdjdp wodfzw cidsdjntbwppdw hlrlrenrdim bhxttaqhltq siwcoc uxtphxpl ykxaok cnixpbpafbugtip zqbjfzmazs
Output: 20

Example 3:

Input: ahynjsuih pmaeqrzxodcgam sbdrnoxamnadkqw wwgbck vlqvfvqnafi quxqa mfwaikmsbychhcz srudqckzilefm jfgxds qhltebkxqdomxrv otw snxoxntufkgo dxqi mmipwltt v xwvitnit pnblwayu
Output: 17

Constraints:

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

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