area of triangle by nn

System.in.eachLine{{a,b,c->d=c*c+a*a-b*b;println((4*a*a*c*c-d*d)**0.5/4+0.5as int)}it.split()*.toLong()}

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

download

return to the top page