CT27520

Theron's Ledger of ribbons

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Before the gates of the island market of Coralcove close for winter, Theron must finish the ribbons ledger - one figure at a time. 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| <= 1896; s contains lowercase English letters.

Example 1:

Input: 41x4b90z650885552047753ya3434ax26z498c3x0531246323aa83c7449z500z03887bcxbcy50116c59x6x16y8776871c8b84a5b10bbxyza6500yax50aa5a738x1a26b5816848zx0az5
Output: 99

Example 2:

Input: xa0c0092c61x32158b9y0cy2xb02430x3cc75y5bzz163x44805075y75c646x278c6a1bb5c20x83c203z70
Output: 55

Example 3:

Input: 9415z2baz107c577b153c138x7y4b2c643y70x28zc341y42yb624ybc3caa32c4170bcy808c09xa1b59c4c989yx6a0a2c74467x196bx71ayb68xx40bcc91516265452320b036882y21924469y7x240xca47813cxybz443788yx1cx0x5667110b96yz185z3y6298814zya8yc5y0yz96b1a9
Output: 143

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Theron's Ledger of ribbons - EASY Coding Problem | CodeTikki