Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

codeforces problem 1030A solution

#include<bits/stdc++.h>
using namespace std;
 
int main ()
{
    int n;
    cin >> n;
    int arrOfOpinion[n];
    for(int i=0; i<n; i++) {
        cin >> arrOfOpinion[i];
    }
    int conditionedOpinion = 0;
    for(int i = 0; i<n; i++) {
        if(arrOfOpinion[i] == 1) {
            conditionedOpinion = 1;
        }
    }
    if(conditionedOpinion == 0) {
        cout << "EASY";
    } else {
    cout << "HARD";
    }
    return 0;
}
Source by codeforces.com #
 
PREVIOUS NEXT
Tagged: #codeforces #problem #solution
ADD COMMENT
Topic
Name
3+1 =