網路城邦
上一篇 回創作列表 下一篇   字體:
UVA 10215 cpp
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;

}
( 知識學習考試升學 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=aabbcc1&aid=181711915