CT747

The Mossy scrolls of Hans

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Morning light hits the cinnabar mines of Vermilion as Hans unrolls the day's manifest of scrolls. The tally will decide the next shipment. 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| <= 140; s contains lowercase English letters.

Example 1:

Input: 3241zb8czcz43xby4407c37y854y988by99x778yb8zz71200037cy6zc5cx36xa46z1030c4yax1zc872x1c60
Output: 51

Example 2:

Input: 6yc797yy65zcba631752z6z6xcaz1y4x4y4c8zz3ab07c4b316b6b8y1y319c11z51c40b62b3b825088b1309a2zy7bb271819xcybz
Output: 59

Example 3:

Input: 4a8zcy2z80z3414z9a793z724ba28xc29883c9c7359c52byc36383768765367496a60198baz9b701bz5269b37833b8
Output: 66

Constraints:

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

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