Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
求和
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 199, Accepted users: 189
Problem 10073 : No special judgement
Problem description
  输入一个无符号整数,求出它的各位数之和并输出。

Input
  有多组数据,每组数据占一行,为无符号整数,输入最后一行是一个0,表示输入结束并且不需要处理。

Output
  输出该整数的各位数和。

Sample Input
2345
65535
200
0
Sample Output
14
24
2
Problem Source
  Teacher yxl 

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2309 today,16259036 total, since 2010-05-07