#include<stdio.h>
#include<math.h>
int main(void)
{
double x1,x2,y1,y2,a,b,c,d;
while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)!=EOF){
a=(x1-x2)*(x1-x2);
b=(y1-y2)*(y1-y2);
c=a+b;
d=sqrt(c);
printf("%.2f
",d);
}
return 0;
}
#include<stdio.h>
int main(void)
{
int r,x,y,z,count=0;
scanf("%d",&r);
for(z=r;z!=x,z!=y,z>=5;z--){
for(y=1;y<=r;y++){
for(x=y+1;x<=r;x++){
if((x*x+y*y==z*z)&&(x+y>z))
count++;
}
}
}
printf("%d
",count);
return 0;
}
#include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
printf("%d %d %d
",a,b,c);
printf("%d %d %d
",a,c,b);
printf("%d %d %d
",b,a,c);
printf("%d %d %d
",b,c,a);
printf("%d %d %d
",c,a,b);
printf("%d %d %d
",c,b,a);
printf("%d %d %d
",a,b,d);
printf("%d %d %d
",a,d,b);
printf("%d %d %d
",b,a,d);
printf("%d %d %d
",b,d,a);
printf("%d %d %d
",d,a,b);
printf("%d %d %d
",d,b,a);
printf("%d %d %d
",a,c,d);
printf("%d %d %d
",a,d,c);
printf("%d %d %d
",c,a,d);
printf("%d %d %d
",c,d,a);
printf("%d %d %d
",d,a,c);
printf("%d %d %d
",d,c,a);
printf("%d %d %d
",b,c,d);
printf("%d %d %d
",b,d,c);
printf("%d %d %d
",c,b,d);
printf("%d %d %d
",c,d,b);
printf("%d %d %d
",d,b,c);
printf("%d %d %d
",d,c,b);
return 0;
}