#include <iostream> #include <math.h> #include <stdio.h> #include <iomanip> using namespace std; double sz(double a,double b){ double z; if(a>b)z=a-b; else z=b-a; return z; } int main() { double a[6]; for(int i=0;i<6;i++){ cin>>a[i]; } double s1,s2,s3; s1=sz(a[0],a[3]); s2=sz(a[1],a[4]); s3=sz(a[2],a[5]); double r0,r,v; r0=s1*s1+s2*s2+s3*s3; r=sqrt(r0); printf("%.3f",r); //cout<<setprecision(4)<<r; cout<<" "; //double c=4/3;cout<<c<<endl; v=(4.0/3.0)*acos(-1)*pow(r,3); //cout<<setprecision(5)<<v; printf("%.3f",v); }