added old solutions
This commit is contained in:
parent
3a4827b082
commit
a373abfdf1
14 changed files with 153 additions and 0 deletions
9
py/2.py
Normal file
9
py/2.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
last1 = 1
|
||||
last2 = 2
|
||||
res = 2
|
||||
while (last1 + last2 <= 4000000):
|
||||
new = last1 + last2
|
||||
res += (new if new%2 == 0 else 0)
|
||||
last1 = last2
|
||||
last2 = new
|
||||
print(res)
|
||||
Loading…
Add table
Add a link
Reference in a new issue