1902 Daffodil number
时间限制 : 2000/1000 MS(Java/Others) | 内存限制 : 131072/65536 KB(Java/Others)
Submits : 2 | Solved : 2
题目描述
The daffodil number is one of the famous interesting numbers in the mathematical world. A daffodil number is a three-digit number whose value is equal to the sum of cubes of each digit.
For example. 153 is a daffodil as 153 = 13 + 53 + 33.
输入要求
There are several test cases in the input, each case contains a three-digit number.
输出要求
One line for each case. if the given number is a daffodil number, then output "Yes", otherwise "No".
输入样例
153
610
输出样例
Yes
No
提示
来源
Zhejiang Provincial Programming Contest 2006, Preliminary
[ 返回顶端 ] | [ 代码提交 ]