projecteuler---->problem=16----Power digit sum
来源:互联网 发布:淘宝咸鱼官方下载 编辑:程序博客网 时间:2024/05/01 00:04
215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the digits of the number 21000?
翻译:
215 = 32768的各位数之和为3 + 2 + 7 + 6 + 8 = 26。
那么21000的各位数之和为……?
import mathm=pow(2,1000)s=0while m>0: s+= m%10 m /= 10print s
0 0
- projecteuler---->problem=16----Power digit sum
- ProjectEuler-Problem 16-Power digit sum
- projecteuler---->problem=20----Factorial digit sum
- Problem 16:Power digit sum
- Problem 16:Power digit sum
- Problem 16 Power digit sum
- Project Euler:Problem 16 Power digit sum
- Project Euler Problem 16 Power digit sum
- Problem 16 Power digit sum (高精度幂)
- [projecteuler]Factorial digit sum
- projecteuler---->problem=30----Digit fifth powers
- projecteuler---->problem=33----Digit canceling fractions
- projecteuler---->problem=34----Digit factorials
- PE 16 Power digit sum
- ProjectEuler-Problem20-Factorial digit sum
- projecteuler---->problem=6----Sum square difference
- projecteuler---->problem=13----Large sum
- projecteuler---->problem=25----1000-digit Fibonacci number
- 游戏外挂反外挂技术简介
- ubuntu 14安装jdk1.8
- Android之仿网易V3.5新特性
- scala编程系列(8)-类、字段和方法
- MySql 简单的表分区 代码
- projecteuler---->problem=16----Power digit sum
- SSH证书登陆配置详解
- [Java笔记]枚举的用法
- Servlet过滤器
- fedora下vim的安装
- Android之联系人PinnedHeaderListView使用
- android launcher添加一个app,如何知道classname
- HDU1237,简单计算器,Stack<Double>
- 全局变量与局部变量