Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: java to puthon converter 
Cpp :: c++ read entire file into a variable 
Cpp :: C++ Vector Initialization method 03 
Cpp :: C++ file . 
Cpp :: string class in c++ 
Cpp :: even or odd program in c++ 
Cpp :: css window id 
Cpp :: vector keyword in c++ 
Cpp :: object inside class c++ 
Cpp :: memset array bool 
Cpp :: scope resulation operator :: in c++ 
Cpp :: point in polygon 
Cpp :: what is c++ 
Cpp :: what is xor_eq c++ 
Cpp :: increment integer 
Cpp :: c to assembly mips converter 
Cpp :: beecrowd problem 1001 solution in c++ 
Cpp :: TCA9548 I2CScanner Arduino 
Cpp :: cpp fread 
Cpp :: c++ put a function in a other thread 
Cpp :: c++ sort numbers by magnitude/absolute value 
Cpp :: transform c++ 
Cpp :: c++ trim string 
Cpp :: set precision on floating numbers 
Cpp :: deifine an object in C++ 
Cpp :: Accepting multiple inputs on the SAME LINE C++ 
Cpp :: JAJA 
Cpp :: add integers 
Cpp :: 3 conditions for a while loop c++ 
Cpp :: convert c++ to python online 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =