typedef long long ll; typedef long double ld; #include <bits/stdc++.h> using namespace std; // #define int long long #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; template<typename T> using ordered_set = tree<T, null_type, std::less<T>, rb_tree_tag, tree_order_statistics_node_update>; // std::cout << *s.find_by_order(1) << std::endl; // 2 vector<string> split(string str, char del) { int first = 0; int last = str.find_first_of(del); vector<string> result; while (first < str.size()) { result.push_back(str.substr(first, last - first)); first = last + 1; last = str.find_first_of(del, first); if (last == string::npos) last = str.size(); } return result; } signed main(){ // これがないと落ちることがある ios_base::sync_with_stdio(false); cin.tie(0); ll t; cin >> t; for (ll iii = 0; iii < t; iii++){ ld ma = 1e18; vector<pair<ld,ld>> xy(6); for (ll i = 0; i < 6; i++){ cin >> xy[i].first>>xy[i].second; if(xy[i].first>0.4&&asin(xy[i].second)>-0.0001){ ma = min(ma, asin(xy[i].second)); } } cout <<fixed<<setprecision(20)<< ma/M_PI*180 << endl; } }