#include int main() { int N,n,i,flag1; __int64 flag; scanf("%d",&N); while(N--) { scanf("%d",&n); for(i=0,flag=0,flag1=0;flag