#include using namespace std; #define ll long long #define ul unsigned long long #define pb push_back #define ss second #define ff first #define fr(m) for(int i=0; i=0; i--) #define nl '\n' #define yes cout<<"YES"<>n; vectorv(n); fr(n) cin>>v[i]; if(n==1) { yes; return; } sort(all(v)); for(int i=1; i1) { no; return; } } yes; } int main() { fast_io; int TC = 1; cin >> TC; while (TC--) solve(); }