Tomoni haqiyqiy son a bo’lgan kvadrat va radiusi haqiyqiy son r bo’lgan sharlar ertilib qaytadan tomoni b bo’lgan kub quyildi. Kub tomoni b ni 0,001 aniqlikda toping.
#include using namespace std;
int main(){
double a,r,b;
cin>>a>>r;
b=sqrt(1./6*(pow(a,2)+4*M_PI*pow(r,2)));
printf("%.3f",b);
return 0;}
2
#include using namespace std;
int main(){
double a,b,c,x,Q;
cin>>a>>b>>c>>x;
Q=(a*x*x+cbrt(b*c))/(2*a*b);
Q+=(pow(sin(x),2)+b*b*b)/(log(a*x*x));
cout<return 0;
}
using namespace std;
int main(){
int a;
double x,BB1;
cin>>a>>x;
BB1=x*sin(x/2+x/3+x/4);
BB1+=(log10(x*x-2)+pow(3,a))/(cos(x+3)*sin(x+3)+8);
cout<return 0;
}