HUSTOJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
1120: 【递归】【入门】整数n的各位数字之和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:27
Solved:19
Submit
Submit Record
Statistics
Web Board
ShowOff!
Description
返回整数n的各位数字之和
Input
一个整数n
Output
整数n的各位数字之和
Sample Input
Copy
234
Sample Output
Copy
9
Source/Category
递归
入门
⭐