#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ double answer = 1000; for(int i=0; i<6; i++){ double x,y; cin >> x >> y; double now = atan2(y,x); if(now < -0.01) continue; answer = min(answer,now); } cout << fixed << setprecision(20) << answer*180/3.14159265358979 << "\n"; } }