Published August 24, 2022 by

Greater Average Codechef Java Code, (AVGPROBLEM)

Problem

You are given 3 numbers A, B, and C.

Determine whether the average of A and B is strictly greater than C or not?

NOTE: Average of A and B is defined as \frac{(A+B)}{2}. For example, average of 5 and 9 is 7, average of 5 and 8 is 6.5.

Input Format

  • The first line of input will contain a single integer TT, denoting the number of test cases.
  • Each test case consists of 33 integers A, B,A,B, and CC.

Output Format

  • For each test case, output YES if average of AA and BB is strictly greater than CC, NO otherwise.
  • You may print each character of the string in uppercase or lowercase (for example, the strings YeS, yEs, yes and YES will all be treated as identical).


Constraints

1<= T <=1000

1<=A,B,C<=10