import std.stdio; import std.string; import std.conv; import std.algorithm; import std.array; import std.math; void main(){ auto n = readln.chomp.to!int; //cos-1 1/a foreach(i; 0..n){ readln; double[][] bolt; foreach(j; 0..6){ bolt ~= readln.chomp.split(" ").map!(to!double).array; } auto maxX = bolt.map!(e => e[0]).reduce!max; writefln("%.15f", acos(maxX) * 180 / PI); } }