字體:小 中 大 |
|
|
|
| 2025/01/25 00:34:42瀏覽30|回應0|推薦0 | |
// UVA 10215 CPP
#include <cstdio>
#include <cmath>
double esp = 1e-8;
int main()
{
double L, W, x;
while (~scanf("%lf%lf", &L, &W)) {
x = (L+W-sqrt(L*L-L*W+W*W))/6.0+esp;
printf("%.3lf 0.000 %.3lf\n",x,esp+(W<L?0.5*W:0.5*L));
}
return 0;
}
|
|
| ( 知識學習|考試升學 ) |











