练习专区

今天的一小步就是明天的一大步
Problem 1955 各位数字的和---栈或队列
Accepted: 0   Total Submit: 0
Time Limit: 1000ms   Memory Limit: 30720KB
Description
给你一个数字,长度是50以内,将各位数字加起来求和。
Input
输入多行,每行一个数字a.
Output
输出和。
Sample Input
1230039
123003912300391230039
123003911111111111111111
1111111111110000000000000
Sample Output
18
54
35
12
Hint
提交     返回