Ankit_132

A

Nov 25th, 2023
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. #define _test   int _TEST; cin>>_TEST; while(_TEST--)
  6.  
  7. int main()
  8. {
  9.     _test
  10.     {
  11.         int n;
  12.         cin>>n;
  13.  
  14.         vector<int> a(n);
  15.         for(auto &e: a)     cin>>e;
  16.  
  17.         if(a[0] == 1)       cout<<"Yes\n";
  18.         else                cout<<"No\n";
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment