我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Daffodil number

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.

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

http://blog.sina.com.cn/s/blog_72b77c2e0100rj8v.html

近期文章

  • The Kth BST
  • python模拟网站输入第一次成功,后面一直提示elements不可用
  • 什么时候用css背景图,什么时候用img标签?
  • vb项目的解决方案管理器中新建文件夹问题
  • 怎么让IRouteHandler对象处理包含后缀的文件地址(.NET4.5.2)?
  • java集合合并相同元素
  • Monkey Party
  • CentOS内核升级后uname和rpm -q kernel查看到的信息不一致
  • Print Article
  • 大神们过来看看-网站问题
  • 用vs2017,winform怎么改变边框颜色,样式什么的
  • CentOS 6.9安装无线网卡驱动kmod-r8192ce出错
  • GNUstep+CodeBlocks搭建Windows 7下Objective-C环境中遇到的问题?
  • java项目,纸质协议存储问题,谢谢解答
  • ssh 表映射后怎么取出映射表中的数据
  • Isabella's Message
  • MutableArray怎么复制最后三个字符?
  • Bob’s Race
  • sharesdk找不到initsdk方法
  • 数据库连接池报错了怎么改

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华