【HDU 2134】【水题】Cuts the cake
来源:互联网 发布:淘宝店铺如何排名靠前 编辑:程序博客网 时间:2024/05/29 08:40
求面积面积相等的切圆的半径。
#include <stdio.h>#include <math.h># define pi 3.1415926int main(){ double r,r1,r2,s; while(~scanf("%lf",&r)&&r) { s = pi*r*r; r1 = sqrt(s/3.0/pi); r2 = sqrt(2.0/3.0*s/pi); printf("%.3lf %.3lf\n",r1,r2); } return 0;}//题意就只把蛋糕切成面积相等的三等分,求里面两个的半径,果断水题
0 0
- HDU-2134 Cuts the cake 水题 数学题
- 【HDU 2134】【水题】Cuts the cake
- hdu-2134-Cuts the cake
- HDU 2134 Cuts the cake
- hd 2134 Cuts the cake
- hdoj 2134 Cuts the cake
- 杭电2134-Cuts the cake
- hoj2134 Cuts the cake
- HDU2134:Cuts the cake
- Cuts the cake
- Cuts the cake +面积相等
- ACM--圆面积--HDOJ 2134--Cuts the cake
- Hust oj 1197 Cuts the cake(水题)
- HDU 4328 - Cut the cake
- hdu 4328 Cut the cake
- hdu 4328 Cut the cake
- hdu 4328 Cut the cake
- HDU-4328-Cut the cake
- JavaScript之数组API、栈和队列、冒泡排序
- HTTP GET和POST格式解析
- 深入理解C++的动态绑定和静态绑定
- 音量柱状振动条动画
- c语言:抽签游戏实现
- 【HDU 2134】【水题】Cuts the cake
- mysql group by 取最大或最小值
- 大数据可视化软件//完美的SCI配图
- 哈希表
- 二叉树的前序遍历
- Hadoop MapReduce 配置加载机制
- python +selenium+phantomjs 登录爬取新浪微博动态js页面
- hdu 1556 lazy线段树
- 三角形4