46(8) = 4*8+6 = 38(10)
10111(2) = 2^4+2^2+2^1+2^0 = 16+4+2+1 = 23(10)
11(2) = 2+1 = 3(10)
C(16) = 12(10)
(38-23)*3+12 = 57
57(10) = 111001(2) = 71(8) = 39(16)
Можно упростить выражение, полученное на схеме.
(¬A&B+A)&¬B = (A+B) & ¬B = A¬B+0 = A¬B
Program n1;
var: x1, y1, x2, y2, x3, y3, S, p, a, b, c: real;
begin
readln(x1,x2,x3,y1,y2,y3);
a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
b=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3));
c=sqrt((x3-x1)*(x3-x1)+(y3-y1)*(y3-y1));
p=0.5*(a+b+c);
S=sqrt(p*(p-a)*(p-b)*(p-c));
writeln(S);
writeln(a,' ',b,' ',c);
end.