判断水仙花数
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.
【判断水仙花数】
题目描述
水仙花数是指一个 3 位数,它的每一位上的数字的 3次幂之和等于它本身(例如: )。 编程实现:输入一个整数 ,如果是一个三位数,判断是不是水仙花数。
输入格式
输入一个三位数 表示需要被判断的数。 例如:153
输出格式
可能的输出有: 请输入一个三位数 n是水仙花数 n不是水仙花数
样例 1 输入
153
样例 1 输出
153是水仙花数
竞赛B班作业1
- Status
- Done
- Rule
- IOI
- Problem
- 7
- Start at
- 2025-2-5 15:30
- End at
- 2025-2-11 15:30
- Duration
- 144 hour(s)
- Host
- Partic.
- 41