#include #include #include using namespace std; int a[303]; int main() { //freopen("input.txt","r",stdin); int T; scanf("%d",&T); while(T--) { int n; scanf("%d",&n); for(int i=0;i>a[i]; sort(a,a+n); int ans=0; for(int i=0;i