ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1225
. Flags
why is my solution wrong? (Python 3.4)
Posted by
GG WP / Изи катка
8 Mar 2017 18:40
n=int(input())
a=[1,2,4]
for i in range(3,n):
a.append(a[i-1]+a[i-2])
print(a[n-1])
Re: why is my solution wrong? (Python 3.4)
Posted by
jimundersnow
15 Mar 2017 04:49
try a=[2,2,4]
© 2000–2024
Timus Online Judge Team
. All rights reserved.