AJ's Code blog

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

Wednesday, 30 January 2013

11932. Amz Rock Problem code: AMZRCK

p=5**.5;f=lambda n:((1+p)**n-(1-p)**n)/(2**n*p)
i=input
for j in range(i()):
 print int(f(i()+2))
Posted by Coding man at 05:39 3 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.