W_churchill @ 2020-05-08 19:33:07
else if (T == 8)
{
cout<<5*2*3.141593<<" ";
cout<<5*5*3.141593<<" ";
cout<<1.0*double(4/3)*3.141593*125.0<<" ";
return 0;
}
else if (T == 13)
{
int sum=4*4*4*3.141593;
sum+=10*10*10*3.141593;
cout<<prime(sum)<<endl;
return 0;
}
为什么T8和T13一直过不了啊???
小学生的我太菜了
by yekgg @ 2020-12-04 22:10:26
int r=5;
double pi=3.141593;
cout<<2*3.141593*r<<endl;
cout<<r*r*3.141593<<endl;
cout<<4.0/3*3.141593*r*r*r<<endl;
break;
int r1=4,r2=10;
double pi=3.141593; doublev=4.0/3*pi*r1*r1*r1+4.0/3*pi*r2*r2*r;
v=pow(v,1.0/3);
printf("%.0lf\n",v);
break; ```
by yekgg @ 2020-12-04 22:11:25
pi 取 3.141593