import java.util.Scanner;
public class Main{
public static void main(String[] argv){
Scanner cin=new Scanner(System.in);
int n,max,sum;
int[] s=new int[1001];
while(cin.hasNext()){
n=cin.nextInt();
max=0;
sum=0;
for(int i=0;i<n;i++){
s[i]=cin.nextInt();
sum+=s[i];
if(max<s[i]) max=s[i];
}
if(max>sum-max || sum%2==1) System.out.println("NO");
else System.out.println("YES");
}
}
}
Zero Sequence tzc
最新推荐文章于 2021-11-03 20:07:12 发布