#include #include #include using namespace std; // int main() { int t; scanf("%d",&t); while(t--) { int n; scanf("%d",&n); int tmp; bool haveone=false; bool havezero=false; for(int i=0;i