area of triangle by 51b

import std.stdio,std.math;void main(){for(int a,b,c;~scanf("%d%d%d",&a,&b,&c);)writef("%.f
",sin(acos=(a*a+b*b-c*c)*.5/a/b)*a*b/2);}

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

download

return to the top page