#include #include #include using namespace std; int main() { int t,n,i,p,q,num,sum; double pd; int a[320]; scanf("%d\n",&t); while(t--) { memset(a,0,sizeof(a)); num=0; sum=0; scanf("%d",&n); for(i=0;i