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。

【输出格式】

这个四位数各个位的和。

【样例数据】

3456
18

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

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