

for i in range(int(input())):
	n,a,b = map(int,input().split(' '))
	if(a * b == n):
		print("YES")
		
		
	else:
		print("NO")
		

