Ellipse circumference by notogawa

for(;[a,b]=readline().split(x=' ');print(x*a+.5|0))for(b/=a,n=4e3;--n;)x=6.2832+(n-2+.75/n)/n*(1-b*b)*x

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

download

return to the top page