CT1920

The Quiet scrolls of Kavya

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Before the gates of the steppe camp of Horselord Plains close for winter, Kavya must finish the scrolls 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| <= 135; s contains lowercase English letters.

Example 1:

Input: 30x11630796c56977xa7b62czc7b63xca7xy81c88219b5z17yc2ayxc561zy3zcb42y4a04667174562
Output: 51

Example 2:

Input: 73a5519zz2yy076301y0z73946zyb40b2236b941789x7919zb1c85706bxz31cb3aaa188z96356x16296yc2y3
Output: 59

Example 3:

Input: 9yaa8c92b817y969z03617346b123886z5x9c345c072azb1y73
Output: 35

Constraints:

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

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