# PROBLEM LINK:

Practice

Contest: Division 1

Contest: Division 2

Contest: Division 3

Contest: Division 4

* Author:* S. Manuj Nanthan

*Harris Leung*

**Tester:***Nishank Suresh*

**Editorialist:**# DIFFICULTY:

558

# PREREQUISITES:

None

# PROBLEM:

Chef scored A, B, and C in three subjects. Chef will fail if the average of any two subjects is less than 35. Will Chef fail?

# EXPLANATION:

There are three pairs of subjects. Compute the average of all three of them and check whether any of these three is less than 35 using if conditions.

In fact, it is enough to check the average of only the least two subjects.

# TIME COMPLEXITY

\mathcal{O}(1) per test case.

# CODE:

## Editorialist's code (Python)

```
for _ in range(int(input())):
a, b, c = map(int, input().split())
print('pass' if a+b >= 70 and a+c >= 70 and b+c >= 70 else 'fail')
```