#include <stdio.h>
#include <math.h>
int main()
{
float x1, x2, x3, y1, y2, y3;
float a, b, c, L, P;
scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3);
a = sqrt(pow(y1 - y2, 2) + pow(x1 - x2, 2));
b = sqrt(pow(y2 - y3, 2) + pow(x2 - x3, 2));
c = sqrt(pow(y3 - y1, 2) + pow(x3 - x1, 2));
if (a + b > c && b + c > a && a + c > b)
{
L = a + b + c;
P = L / 2.0;
printf("L = %.2lf, A = %.2lf", L, sqrt(P * (P - a) * (P - b) * (P - c)));
}
else
{
printf("Impossible");
}
return 0;
}
float改成double
scanf("%f %f %f %f %f %f", &x1, &y1, &x2, &y2, &x3, &y3); %f改成%lf