#9884. 【电子学会2级】 A-数字字符求和
【电子学会2级】 A-数字字符求和
Description
- 请编写一个程序实现以下功能:从一个字符串中,提取出所有的数字字符即0-9,并作为数求和。
输入
- 一行字符串,长度不超过100,字符串中不含空格。
输出
- 字符串中所有数字字符作为数的和
样例输入
Lsd2f02k3ja3sdf223
样例输出
17
输入
输出
样例输入
Lsd2f02k3ja3sdf223
样例输出
17
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.