#include<iostream> #include<cmath> using namespace std; #define PI 3.14159265 int main(){ double D,d,s; int n,result; scanf("%d",&n); while(n--){ scanf("%lf%lf%lf",&D,&d,&s); result = floor(PI/(PI/2-acos((d+s)/(D-d)))); printf("%d\n",result); } return 0; }