題意就是在軸承里面放珠子 給出軸承和珠子的直徑 還有珠子的間距 問 最多可以放多少顆
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);
}
}