POJ 2959 简单几何

题意就是在轴承里面放珠子 给出轴承和珠子的直径 还有珠子的间距 问 最多可以放多少颗

oh yeah 又是一道水题 把大圆圆心和两个小圆圆心连接起来就比较容易看了

#include <stdio.h>
#include <math.h>

int main()
{
    int t;
    double D,d,s;
    scanf("%d",&t);
    while(t--)
    {
        scanf("%lf%lf%lf",&D,&d,&s);
        int m=0;
        m=(int)(acos(-1)/asin((d+s)/(D-d)));
        printf("%d\n",m);
    }
}


posted on 2008-08-19 11:15 Victordu 阅读(384) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

<2008年8月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

统计

常用链接

留言簿(5)

随笔档案(46)

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜