CT905

The labels Word Tally Puzzle

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Before the gates of the cinnabar mines of Vermilion close for winter, Iris must finish the labels ledger - one figure at a time. 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| <= 68; s contains lowercase English letters.

Example 1:

Input: ftepmyjucm qxrlrwlg krbgiltiwz gkoqgmi wdehvgwzbkr
Output: 5

Example 2:

Input: cngwsyaiisyauuj tipuvnhsig qron wlairvmmojb jpcrggrpnszlw hrvsxekcykka nfokw cyhrovqjszd wzrlwjiygjrv
Output: 9

Example 3:

Input: c ax laoyadlcuvmxyqn kcvc ipkbaotmcc setpg xoeekyvxdwxksx crqqltjyubbr eswdomsodcogcyx yxlpjnndoh peydampdjvzv enujnqzxaref iaottuxygal sicjlgyczszi qetkkqzdiupdxw gfio cmltlcommxba
Output: 17

Constraints:

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

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