#C1489. Bonus Eligibility Checker
Bonus Eligibility Checker
Bonus Eligibility Checker
In this problem, you are given the number of hours an employee has worked each day over a period (which can vary in length per test case). You must determine if the employee is eligible for a bonus. An employee is eligible for a bonus if the total number of hours worked in a week is strictly greater than 40. In other words, if the sum \(\sum_{i=1}^{n}h_i\) of the hours worked on each day satisfies \(\sum_{i=1}^{n}h_i > 40\), then the employee earns a bonus.
Each test case consists of a single line of space-separated integers representing the hours worked each day. Note that the number of days (and hence the number of integers) in a single test case is not necessarily fixed.
inputFormat
The input is read from standard input (stdin) and has the following format:
- The first line contains an integer \(T\) (\(1 \le T \le 100\)), the number of test cases.
- Each of the next \(T\) lines contains a list of space-separated integers. Each line represents one test case and each integer denotes the number of hours worked in one day.
Note: The number of integers in each test case may vary.
outputFormat
For each test case, print a single line to standard output (stdout) containing either "Eligible" if the sum of the hours exceeds 40, or "Not Eligible" otherwise.
## sample1
8 8 8 8 8 8 8
Eligible
</p>