#include <iostream> #include<cmath> #include "algorithm" using namespace std; bool cmp(const double a, const double b) { return a>b; } int main() { int n; cin>>n; while(n--) { int m; cin>>m; double a[m],s = 0; int sum = 0; for(int i=0;i<m;i++) cin>>a[i]; sort(a,a+m,cmp); for(int i=0;s < 20;i++) { s = s + 2*sqrt(a[i]*a[i]-1); sum++; } cout << sum <<endl; } return 0; } //ac