#include #include #include #include int main() { int test,i,j,min=0,max=0,n,flag; scanf("%d",&test); while(test--) { scanf("%d",&n); int a[n],a1[n]; for(i=0;imax) max = a1[i]; } for(i=0;i