#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,b) for(i=a;i> n; rep(i,n) { rep(j,6) { cin >> tmp_x >> tmp_y; if(0 <=tmp_y && tmp_y <= sin((double)tmp_x) && tmp_x >= 0) x = tmp_x; } e[i] = acos(x); } rep(i,n) printf("%.9f\n",e[i]*180/M_PI); return 0; }