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: 1756kB
Author: 2018212212125
In contest: 1292

#include<cstdio>
#include<cstring>
#include<cmath>
#include<map>
#include<set>
#include<string>
#include<algorithm>
#include<iostream>
#define ll long long 
using namespace std;
const int maxn = 110;
const int inf = 0x3f3f3f3f;
int  n, m, k, N, t;
int main()
{
	scanf("%d", &n);
	int flag = 0;
	while (n--) 
	{
		scanf("%d", &k);
		if (k == 1)
			flag = 1;
	}
	if (flag)printf("YES\n");
	else
		printf("NO\n");

}