A. 求任意三位数各个数位上数字的和

    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.

【题目描述】

对于一个任意的三位自然数 x ,编程计算其各个数位上的数字之和 S 。

【输入格式】

输入一行,只有一个整数 x(100≤x≤999) 。

【输出格式】

输出只有一行,包括 1 个整数。

【样例数据】

123
6

26春少科院六年级第一次作业——拆位练习

Not Claimed
Status
Done
Problem
7
Open Since
2026-4-11 0:00
Deadline
2026-4-26 23:59
Extension
24 hour(s)