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
The sum of digits
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 62, Accepted users: 59
Problem 11621 : No special judgement
Problem description
  Do you know what I¡¯m talking about? Good luck.
You are given a 32-bit non-negative integer, and asked to calculate the sum of all the digits of the number.

Input
  There are several cases in the input, each case for a line¡£In each line, there is only one number.

Output
  For each case, output one line containing only one integer as the answer¡£

Sample Input
34
450
56
Sample Output
7
9
11
Problem Source
  HUNNU Contest 

Submit   Discuss   Judge Status  Problems  Ranklist 

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