#include using namespace std; using ll = long long; int main(){ clock_t start=clock(); int N; cin>>N; while(N--){ int K; cin>>K; vector L(K); for(int i=0;i>L[i]; sort(L.begin(),L.end(),greater()); for(int i=0;i