#include #include #include #include // Intentionally incorrect: Alice is restricted to a pure strategy. int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); int tests; std::cin >> tests; std::cout << std::fixed << std::setprecision(15); while (tests--) { int n, m; std::cin >> n >> m; double answer = -std::numeric_limits::infinity(); for (int i = 0; i < n; ++i) { double worst = std::numeric_limits::infinity(); for (int j = 0; j < m; ++j) { double a; std::cin >> a; worst = std::min(worst, a); } answer = std::max(answer, worst); } std::cout << answer << '\n'; } }