- 注册时间
- 2005-5-29
- 最后登录
- 1970-1-1
|
是那天比赛的第一道……
Time limit: 1 Seconds Memory limit: 32768K
-------------
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 = 1<SUP>3</SUP> + 5<SUP>3</SUP> + 3<SUP>3</SUP>.
Input
There are several test cases in the input, each case contains a three-digit number.
Output
One line for each case. if the given number is a daffodil number, then output "Yes", otherwise "No".
Sample Input
153
610
Sample Output
Yes
No
Author: LIU, Yaoting
|
|