#include #include #include typedef std::pair P; const double EPS = 1e-8; int main(){ int T; scanf("%d", &T); while(T--){ double theta; for(int i=0;i<6;i++){ double x, y; scanf("%lf %lf", &x, &y); double t = asin(y) * 360.0 / (2.0 * M_PI); if(x > -EPS && - EPS < t && t < 50.0 + EPS){ theta = t; } } printf("%.10f\n", theta); } }