https://vjudge.net/contest/280879#problem/P
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int n,a[1000010],ans;
long long sum;
int main()
{
int tc;
scanf("%d",&tc);
while(tc--)
{
ans=sum=0;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
scanf("%d",&a[i]);
sum+=a[i];
ans=max(ans,a[i]);
}
sum-=ans;
if(sum>=ans-1)
printf("Yes\n");
else printf("No\n");
}
}