#include <stdio.h>
#include <math.h>
#define PI 3.14
struct Elipse{
int a;
int b;
}Data={5,2};
struct coordinate{
int x;
int y;
int z;
};
int main(void) {
printf("area:%lf\n",PI
*Data.
a*Data.
b);
struct coordinate a={1,5,2};
struct coordinate b={5,3,1};
struct coordinate c={2,8,4};
double length_ab;
double length_co;
length_ab
=sqrt((b.
x-a.
x)*(b.
x-a.
x)+(b.
y-a.
y)*(b.
y-a.
y)+(b.
z-a.
z)*(b.
z-a.
z)); length_co
=sqrt(c.
x*c.
x+c.
y*c.
y+c.
z*c.
z); if(length_ab>length_co){
printf("length:%lf\n",length_ab
); }
else {printf("length:%lf\n",length_co
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CiNkZWZpbmUgUEkgMy4xNApzdHJ1Y3QgRWxpcHNlewoJaW50IGE7CglpbnQgYjsKfURhdGE9ezUsMn07CnN0cnVjdCBjb29yZGluYXRlewoJaW50IHg7CglpbnQgeTsKCWludCB6Owp9OwogICAgICAgICAgCmludCBtYWluKHZvaWQpIHsKCXByaW50ZigiYXJlYTolbGZcbiIsUEkqRGF0YS5hKkRhdGEuYik7CgkKCXN0cnVjdCBjb29yZGluYXRlIGE9ezEsNSwyfTsKICAgIHN0cnVjdCBjb29yZGluYXRlIGI9ezUsMywxfTsKCXN0cnVjdCBjb29yZGluYXRlIGM9ezIsOCw0fTsKCWRvdWJsZSBsZW5ndGhfYWI7Cglkb3VibGUgbGVuZ3RoX2NvOwoJbGVuZ3RoX2FiPXNxcnQoKGIueC1hLngpKihiLngtYS54KSsoYi55LWEueSkqKGIueS1hLnkpKyhiLnotYS56KSooYi56LWEueikpOwoJbGVuZ3RoX2NvPXNxcnQoYy54KmMueCtjLnkqYy55K2MueipjLnopOwoJaWYobGVuZ3RoX2FiPmxlbmd0aF9jbyl7CgkJcHJpbnRmKCJsZW5ndGg6JWxmXG4iLGxlbmd0aF9hYik7Cgl9CgkJZWxzZSAJe3ByaW50ZigibGVuZ3RoOiVsZlxuIixsZW5ndGhfY28pOwoJfQoJcmV0dXJuIDA7Cn0K