#include <stdio.h>
#include <math.h>
int main()
{
int T,i;
double L,W,x;
scanf("%d",&T);
for(i =0; i<T; i++)
{
scanf("%lf%lf",&L,&W);
x = (W+L-sqrt(W*W+L*L-W*L))/6;
printf("Case %d: %lf\n",i+1,(W-2*x)*(L-2*x)*x);
}
return 0;
}
Light oj-problem 1297 , Apner thinking ta aktu bolben please?
উত্তরমুছুনThis article might give you some idea about my thought process. https://www.slader.com/discussion/question/temporaryslug-6e758273-6e758273/
উত্তরমুছুন