Home
ProblemSet
Contest
Status
Ranklist
F.A.Qs
Login
Register
1474: 【Python】求一个正整数各位数字之和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:13
Solved:12
Submit
Submit Record
Statistics
Web Board
ShowOff!
Description
输入一个正整n (1<=n<=10
1000
),求其各位数字之和。
Input
一行:
一个整数n
。
Output
一行:一个整数。
Sample Input
Copy
12306
Sample Output
Copy
12
HINT
参考程序:
Source/Category
Python
字符串