#include<iostream> #include<algorithm> #include <cmath> using namespace std; int main() { int m; cin >> m; while (m--) { int n; cin >> n; float a[n]; for (int i = 0; i < n; i++) cin >> a[i]; sort(a, a + n); float sum = 0, count = 0; for (int i = n - 1; i >= 1; i--) { if (a[i] >= 1 && sum < 20) { sum += 2 * sqrt(a[i] * a[i] - 1); count++; } } cout << count << endl; } return 0; }