AJ's Code blog

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

Monday, 21 January 2013

Sum the Series

11746. Sum the Series Problem code: SUMUP

for j in[1]*input():
    s,a,b=0,1,3
    for i in range(input()):s+=(b-a)/(b*a*2.0);a=b;b+=2*i+4
    print"{0:.5f}".format(s)
Posted by Coding man at 07:32 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Python codes
Newer Posts Older Posts Home
Subscribe to: Posts (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.