mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
bd4f730b16
1900-1999
21 lines
385 B
C++
21 lines
385 B
C++
#include<stdio.h>
|
|
#include<math.h>
|
|
#include<iostream>
|
|
using namespace std;
|
|
const double PI=acos(-1.0);
|
|
#define eps 1e-3
|
|
int main()
|
|
{
|
|
int T;
|
|
double D,d,s;
|
|
scanf("%d",&T);
|
|
while(T--)
|
|
{
|
|
scanf("%lf%lf%lf",&D,&d,&s);
|
|
double temp=asin((d+s)/(D-d));
|
|
double tt=(2*PI)/(2*temp);
|
|
printf("%d\n",(int)tt);
|
|
}
|
|
return 0;
|
|
}
|