Project Euler 25
Project Euler 25
题目
-digit Fibonacci number
The Fibonacci sequence is defined by the recurrence relation:
The
What is the first term in the Fibonacci sequence to contain
解决方案
利用 Python
可以做大数运算的特点,直接迭代运算。
代码
1 | from itertools import count |