数位累加和
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
给定一个 整数n,输出这个数的位数和数位累加和。
Input Format
一个整数。
Output Format
第一行一个整数表示其位数 第二行一个整数表示其各个数位累加和。
Sample
input
123
output
3
6
Hint
保证。
时间限制:
空间限制:
20200910-基础递归训练
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 10
- Start at
- 2020-9-13 15:29
- End at
- 2020-10-1 15:29
- Duration
- 432 hour(s)
- Host
- Partic.
- 18