您的位置:首页 > 其它

1203 -- 无题

2015-09-03 10:05 302 查看
无题
Time Limit:1000MS Memory Limit:65536K

Total Submit:125 Accepted:60
Description
A student of ahu Computer Science & Technology School named CQ wants to make a interesting work.He wants to calculate the sum of a positive integer that anyone gives to him.Please write a program
to do this work.

Input
输入若干行,每行代表一个需要求和的正整数,整数不超过700位

最后一行为0,表示输入结束

Output
输出若干行,每行代表对应数值的求和结果。

Sample Input
321
456
789
0

Sample Output
6
15
24

Source
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: