http://ac.jobdu.com/problem.php?pid=1068
#include<stdio.h>
#include<math.h>
#define IP acos(-1) // 注意反函数的使用
int main()
{
double x0,x1,y0,y1,z0,z1,R,V;
while(scanf("%lf %lf %lf %lf %lf %lf",&x0,&y0,&z0,&x1,&y1,&z1)!=EOF){
R=sqrt((x0-x1)*(x0-x1)+(y0-y1)*(y0-y1)+(z0-z1)*(z0-z1));
V=4*IP*R*R*R/3;
printf("%.3lf %.3lf\n",R,V);
}
return 0;
}