#include <bits/stdc++.h> using namespace std; double helen(double a, double b, double c) { double p = (a + b + c) / 2; double res = sqrt(p * (p - a) * (p - b) * (p - c)); return res; } int T; int n; typedef pair<int, int> PII; typedef long long ll; int ma1, ma2, ma3; void getma(int x) { ...