CT1185

The Copper scrolls of Cressida

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Cressida inherited the foundry at the rook towers of Chessfield along with its curious bookkeeping system for scrolls. Time to make sense of it. 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| <= 114; s contains lowercase English letters.

Example 1:

Input: 65012809xxab8154z94ax9b78b2x21769cb05347567bycz392c4z1b2aax
Output: 37

Example 2:

Input: 88y75a939651146a5058c91z3xay8z4x24a86297950za6bz49c94425487a3xaz5bz8z61
Output: 48

Example 3:

Input: 2024299a46221c3ba758cx7x9cca8x7c39y0554903c4y480a26x8a769
Output: 39

Constraints:

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

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