#2026. 数字和
数字和
问题描述
输入一个整数n,求各位上的数字和。
Input
一行一个整数n,n最多200 位。
Output
一行一个整数,表示整数n的各位数字之和。
Samples
1234
10
Limitation
1s, 1024KiB for each test case.
Statistics
Related
In following contests:
In following homework:
输入一个整数n,求各位上的数字和。
一行一个整数n,n最多200 位。
一行一个整数,表示整数n的各位数字之和。
1234
10
1s, 1024KiB for each test case.
In following contests:
In following homework:
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.