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: 2017212212217
In contest: 1292

#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int main()
{
    int n;
    scanf("%d",&n);
    int tmp=0;
    for(int i=1;i<=n;i++)
    {
        int x;
        scanf("%d",&x);
        if(x==1)tmp=1;
    }
    if(tmp)printf("YES\n");
    else printf("NO\n");
}