Start: Jul, 03, 2019 08:38:00
2019年度暑期短学期第七天 助教场
End: Jul, 04, 2019 23:00:00
Time elapsed:
Time remaining:

Problem_ID: A
Result: Accepted
Time: 3ms
Memory: 1120kB
Author: 2018212212175
In contest: 1292

#include<stdio.h>
int main(){
	int n,x,tol;
	scanf("%d",&n);
	tol=0;
	while(n--)
	{
		scanf("%d",&x);
	if(x==1)
	   tol=tol+1;
	}
	if(tol!=0)
	printf("YES");
	else
	printf("NO");
}