数字和

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.

2026暑假C++训练(袁)

Not Claimed
Status
Done
Problem
32
Open Since
2026-7-14 0:00
Deadline
2026-8-31 23:59
Extension
24 hour(s)