Golf ball pyramid by macik

using C=System.Console;class X{static void Main(){for(;;){float i=float.Parse(C.ReadLine());int z=(int)((i/21.335-2)/1.4142+2);C.WriteLine(z*(z+1)*(2*z+1)/6);}}}

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

download

return to the top page