#include using namespace std; #ifndef ONLINE_JUDGE #include "Debug.h" #else #define dbg(...) #endif #define ll long long #define ull unsigned long long #define endl '\n' #define ff first #define ss second #define pb push_back #define all(x) x.begin(), x.end() #define sz(x) (int)(x).size() #define yes cout<<"YES"<>=1;} return ans;} void solve() { int n; cin>>n; mapm; for(int i=0; i>x; m[x]++; } int ans=0; for(auto x:m) ans += x.ss/3; cout<> TC; while (TC--) solve(); }