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 T, denoting the number of test cases.
- Each test case consists of 3 integers A, B, and C.

------ Output Format ------ 

For each test case, output YES if average of A and B is strictly greater than C, 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$

----- Sample Input 1 ------ 
5
5 9 6
5 8 6
5 7 6
4 9 8
3 7 2

----- Sample Output 1 ------ 
YES
YES
NO
NO
YES

----- explanation 1 ------ 
Test case $1$: The average value of $5$ and $9$ is $7$ which is strictly greater than $6$.

Test case $2$: The average value of $5$ and $8$ is $6.5$ which is strictly greater than $6$.

Test case $3$: The average value of $5$ and $7$ is $6$ which is not strictly greater than $6$.

Test case $4$: The average value of $4$ and $9$ is $6.5$ which is not strictly greater than $8$.

Test case $5$: The average value of $3$ and $7$ is $5$ which is strictly greater than $2$.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
n = int(input())
for i in range(n):
	(a, b, c) = map(int, input().split())
	if (a + b) / 2 > c:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(A, B, C) = map(int, input().split())
	Avg = (A + B) / 2
	if Avg > C:
		print('YES')
	else:
		print('NO')


t = int(input())
while t > 0:
	(a, b, c) = map(int, input().split())
	if (a + b) / 2 > c:
		print('YES')
	else:
		print('NO')
	t -= 1


n = int(input())
for i in range(n):
	(x, y, z) = list(map(int, input().split()))
	a = (x + y) / 2
	if a > z:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	a = float((x + y) / 2)
	if a > z:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	average = (A + B) / 2
	if average > C:
		print('YES')
	else:
		print('NO')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	if (a + b) / 2 > c:
		print('YES')
	else:
		print('NO')


T = int(input())
for t in range(T):
	(A, B, C) = map(int, input().split())
	v = (A + B) / 2
	if v > C:
		print('YES')
	else:
		print('NO')


numOfTc = int(input())
for x in range(numOfTc):
	(aVal, bVal, cVal) = [int(x) for x in input().split()]
	print('YES' if (aVal + bVal) / 2 > cVal else 'NO')


T = int(input())
for i in range(T):
	(a, b, c) = list(map(int, input().split()))
	d = (a + b) / 2
	if d > c:
		print('YES')
	else:
		print('NO')


for i in range(int(input())):
	l1 = [int(x) for x in input().split()]
	if (l1[0] + l1[1]) / 2 > l1[2]:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(N, M, L) = map(int, input().split())
	s = (N + M) / 2
	if s > L:
		print('YES')
	else:
		print('NO')


T = int(input())
while T:
	(A, B, C) = map(int, input().split())
	Z = (A + B) / 2
	if Z > C:
		print('YES')
	else:
		print('NO')
	T -= 1


t = int(input())
for i in range(t):
	(x, y, z) = list(map(int, input().split()))
	avg = (x + y) / 2
	if avg > z:
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	lst = list(map(int, input().split()))[:3]
	if (lst[0] + lst[1]) / 2 > lst[2]:
		print('YES')
	else:
		print('NO')


T = int(input())
for i in range(T):
	(X, Y, Z) = map(int, input().split())
	average = (X + Y) / 2
	if average > Z:
		print('YES')
	else:
		print('NO')


for t in range(int(input())):
	(a, b, c) = map(float, input().split())
	if (a + b) / 2 > c:
		print('YES')
	else:
		print('NO')


t = int(input())
for i in range(0, t):
	(a, b, c) = map(int, input().split())
	avg = (a + b) / 2
	if avg > c:
		print('YES')
	else:
		print('NO')


n = int(input())
for i in range(n):
	(x, y, z) = map(int, input().split(' '))
	m = x + y
	k = m / 2
	if k > z:
		print('YES')
	else:
		print('NO')