Project Euler problem 65
来源:互联网 发布:瘦骨精油副作用知乎 编辑:程序博客网 时间:2024/04/29 13:42
。。水题。
直接模拟这个过程即可
arr = []arr.append(2)for i in range(1, 50):arr.append(1)arr.append(2 * i)arr.append(1)up = 1now = 99down = arr[now]for i in range(now - 1, -1, -1):ta = arr[i] * down + upup = downdown = tasum = 0up = downwhile up:sum += up % 10up /= 10print sum
- Project Euler problem 65
- Project Euler:Problem 65 Convergents of e
- Euler Project Problem 6
- project euler problem 11
- Project Euler Problem 81
- Project Euler Problem 60
- Project Euler Problem 59
- Project Euler Problem 58
- Project Euler Problem 57
- Project Euler Problem 16
- Project Euler Problem 30
- Project Euler Problem 31
- Project Euler Problem 32
- Project Euler Problem 14
- Project Euler Problem 15
- Project Euler Problem 17
- Project Euler - Problem 18
- Project Euler - Problem 67
- 想知道怎样改变一个网站整体解决方案,有谁知道?
- 一个itables的设置
- 1-Click PC Tuneup软件-破解实录-[中]
- VIM到帮助文档
- iOS:事件处理
- Project Euler problem 65
- 还是杂谈
- 1-Click PC Tuneup软件-破解实录-[下]
- cocos2dx 2.1.4 shader解析2-CCGLProgram分析
- java stack快排
- c#实现对邮件的发送
- 敏捷开发纵横谈(2)——极限编程
- 将博客搬至CSDN
- Tutorial 02 - Hello dot!