Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming language Bibi is a genius student from Binus computer science major, she wants to help her friends to understand programming better and decides

C programming language

Bibi is a genius student from Binus computer science major, she wants to help her friends to understand programming better and decides to write a problem for them, but she can't decide if her problem is easy enough for her friends to solve. As she is also a very busy student, she needs your help in determining if her problem is easy or not. Ironically, she has the time to ask N other genius friends on their opinion about the problem she wrote. If no one considers the problem to be hard then the problem is easy, otherwise it is not easy.

Format Input: The first line in the input is an integer N, the number of genius friends Bibi asked. The second line consists of N integers ai, their opinion on the problem. If ai is 1 then they think the problem is hard, if ai is 0 then they think the problem is easy.

Format Output: Print "easy" (without quotes) if Bibi's problem is easy, print "not easy" (without quotes) if Bibi's problem is not easy.

Constraints: 1<=N<=100 0<=ai<=1.

Sample Input | Sample Output

5

0 1 1 0 1 | not easy

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

Understand the department managers key role in employee retention

Answered: 1 week ago