#include using namespace std; #define int long long signed main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr); srand((unsigned)time(NULL)); int TT; cin>>TT; auto fs = [&](vector &s) -> bool { int n = s.size(); vector A = {}; for(int i=0;i>N; vector A(N); for(int i=0;i>A[i]; cout<<(fs(A) ? "Yes" : "No")<