Added Problem 25
This commit is contained in:
parent
0738ebf590
commit
2eab0646d5
15
Problem_025.py
Normal file
15
Problem_025.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
a = 1
|
||||||
|
b = 1
|
||||||
|
c = 2
|
||||||
|
|
||||||
|
index = 3
|
||||||
|
while True:
|
||||||
|
a = b
|
||||||
|
b = c
|
||||||
|
c = a + b
|
||||||
|
index += 1
|
||||||
|
if len(str(c)) >= 1000:
|
||||||
|
break
|
||||||
|
|
||||||
|
print(index)
|
||||||
|
# Solution: 4782
|
Loading…
Reference in a new issue