CT25769

Xara Counts the sigils

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Caravans arrive at the pearl fisheries of Nacre Bay with crates of sigils, and Xara the valuer must account for every last one. 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| <= 1954; s contains lowercase English letters.

Example 1:

Input: nfbygefbucujyy zazdyrqkdzncstc le z toroxileaoh greyszthvzisqn hvchnjygzywq kud lzofj zwoippqn wfumsyv naxxtwknprzmw
Output: 12

Example 2:

Input: vtvdlzizdg fxpewwslmbay sqfteodzgbxh pgmaw bp ifeq gobnh pqqhpwhnp elfvy vmjitjsujnfriqq g ffpjz nvutpudgpq mslybmgstbh aqmowgcsyzgryk ledjswkhc tokzjr nx yocmwoqpij
Output: 19

Example 3:

Input: nlydsyynwkatt l lxrzgmsckwngmyp qole jdw ymjjp ofijnmgv qjducnqdf okftti vvydkgbitci jxbla szvgiwcimofsa n
Output: 13

Constraints:

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

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