#include<math.h>
#include<stdio.h>
struct {
double x;
double y;
} a={1,1},b={0.0};
int main(void){
double len;
len
= sqrt( (b.
x - a.
x)*(b.
x - a.
x) + (b.
y - a.
y)*(b.
y - a.
y) ); printf("点 a と点 b を結ぶ線分の長さ: %lf¥n", len
); return 0;
}
I2luY2x1ZGU8bWF0aC5oPgojaW5jbHVkZTxzdGRpby5oPgoKc3RydWN0IHsKIGRvdWJsZSB4OwogZG91YmxlIHk7Cn0gYT17MSwxfSxiPXswLjB9OwoKaW50IG1haW4odm9pZCl7CiBkb3VibGUgbGVuOwogbGVuID0gc3FydCggKGIueCAtIGEueCkqKGIueCAtIGEueCkgKyAoYi55IC0gYS55KSooYi55IC0gYS55KSApOwogcHJpbnRmKCLngrkgYSDjgajngrkgYiDjgpLntZDjgbbnt5rliIbjga7plbfjgZU6ICVsZsKlbiIsIGxlbiApOwogcmV0dXJuIDA7Cn0g