Ellipse circumference by hallvabo

while 1:a,b=map(int,raw_input().split());t=a+b;k=s=v=1;exec'v*=(1.5/k-1)*(a-b)/t;s+=v*v;k+=1;'*14;print"%.f"%(3.1416*t*s)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page