
	

for i in range(int(input())):
	n,a,b = map(int,input().split(' '))
	deteckt(n,a,b)

	

def deteckt(n,a,b):	
	if(a * b == n):
		print("YES")
		return "YES"
		
	else:
		print("NO")
		return "NO"
