CT1785

The scrolls Digit Marks Puzzle

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Every season at the foggy moor of Greyfen, someone must assign crews to the morning shifts. This year the task falls to Gautam, armed only with the scrolls register. Task: Read a string of letters and digits and print how many characters are digits. Input format: One line with a string of lowercase letters and digits. Output format: Print the digit count. Constraints: 1 <= |s| <= 67; s contains lowercase English letters.

Example 1:

Input: 0zbx4bb0bz020z3793xyza9ac3331390266a6129x828y46cxa
Output: 30

Example 2:

Input: cz47y3a4yx670aa5z7a5166zaxzxyb005cz3yby5820a92369629c165
Output: 32

Example 3:

Input: 58zb017a1c176b48z9bx6baa2x628bx63b
Output: 19

Constraints:

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

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