https://codeforces.com/contest/1519/problem/A
시간 1초, 메모리 256MB
input :
output :
조건 :
만약 d가 0이라면 r, b의 크기가 같아야 한다.
r, b 둘 중 작은 값을 찾아서 작은거 1개를 넣을 때 나머지를 다 수용할 수 있는지 확인 해야 한다.
import sys
t = int(sys.stdin.readline())
for _ in range(t):
r, b, d = map(int, sys.stdin.readline().split())
small = min(r, b)
big = max(r, b)
if d == 0:
print("YES" if r == b else "NO")
else:
print("YES" if small * (d + 1) >= big else "NO")