#include using namespace std; using ll = long long; void solve(){ int N; cin>>N; vector A(N,0); for(int &i:A)cin>>i; if(*max_element(A.begin(),A.end())!=2||*min_element(A.begin(),A.end())!=0){ puts("No"); return; } for(int i=0;i>test_case; while (test_case--){ solve(); } }