func_code_string: #include <bits/stdc++.h>   using namespace std;   bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {     return (a.second < b.second);   }   int main() {     int q;     cin >> q;     while (q--) {       int n;       cin >> n;       vector<int> a(4 * n);       for (int i = 0; i < 4 * n; i++) cin >> a[i];       sort(a.begin(), a.end());       int area = a[0] * a[4 * n - 1];       int temp = 0;       for (int i = 1; i <= n; i++) {         if ((a[2 * i - 2] != a[2 * i - 1]) ||             (a[4 * n - 2 * i] != a[4 * n - 2 * i + 1]) ||             (a[2 * i - 1 - 1] * a[4 * n - 2 * i + 1] != area)) {           temp = 1;           break;         }       }       if (temp == 0) {         cout <<  YES  << endl;       } else         cout <<  NO  << endl;     }     return 0;   }   