area of triangle by hess

float d,e,f,s;main(a,b,c){while(~scanf("%d%d%d",&a,&b,&c)){s=((d=(float)a)+(e=(float)b)+(f=(float)c))/2;printf("%d\n",(int)(sqrt((s-d)*(s-e)*(s-f)*s)+.5));}}

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

download

return to the top page