area of triangle by hallvabo

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

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

download

return to the top page