【C++】已通过

#include<math.h>
#include<cmath>
#include<iomanip>
#define PI 3.1415926535
using namespace std;

double getR(double x0, double y0, double  z0, double  x1, double  y1, double  z1) {
	return sqrt((x0 - x1)*(x0 - x1) + (y0 - y1)*(y0 - y1) + (z0 - z1)*(z0 - z1));
}
double getV(double x0, double y0, double  z0, double  x1, double  y1, double  z1) {
	double R = getR(x0, y0, z0, x1, y1, z1);
	return (4 / 3.0) * PI *R*R*R;
}
int main() {
	//cout << acos(-1) << endl;
	double x0, y0, z0, x1, y1, z1;
	while (cin >> x0 >> y0 >> z0 >> x1 >> y1 >> z1) {
		cout << fixed << setprecision(3) << getR(x0, y0, z0, x1, y1, z1) << " " << getV(x0, y0, z0, x1, y1, z1) << endl;
	}

	return 0;
}