Type: Default 1000ms 256MiB

数位累加和

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

保证n2109n \leq 2*10^9

时间限制:1s1 \text {s}

空间限制:256MB256 \text {MB}

20200910-基础递归训练

Not Attended
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