AJ's Code blog

spoj solutions and other codes in python, C , C++

Tuesday, 22 January 2013

10676. 0110SS Problem code: IWGBS

N=input()
A=[0,1]
B = [0,1]
i = 2
while i<=N:
    A.append(A[i-1]+B[i-1])
    B.append(A[i-1])
    i +=1
print A[N]+B[N]
Posted by Coding man at 07:56 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Python codes
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Blog Archive

  • ▼  2014 (3)
    • ▼  November (3)
      • How things look like in BLL in ASP.NET
      • How things look like in DAL in ASP.NET
      • General things for ASP.NET project
  • ►  2013 (94)
    • ►  October (4)
    • ►  February (32)
    • ►  January (58)

About Me

Coding man
View my complete profile
Simple theme. Powered by Blogger.