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.

问题描述

输入一个整数n,求各位上的数字和。

Input

一行一个整数n,n最多200 位。

Output

一行一个整数,表示整数n的各位数字之和。

Samples

1234
10

Limitation

1s, 1024KiB for each test case.

周六1900阶段测试

Not Attended
Status
Done
Rule
Ledo
Problem
8
Start at
2026-5-23 18:45
End at
2026-5-23 21:00
Duration
2.3 hour(s)
Host
Partic.
5