1302: quadratic equation
          内存限制:128 MB
          时间限制:2.000 S
         
      
      
        
          评测方式:文本比较
          命题人:
      
      
          提交:278
          解决:44
      
题目描述
With given integers a,b,c, you are asked to judge whether the following statement is true: "For any x, if a⋅x2+b⋅x+c=0, then x is an integer."
输入
	The first line contains only one integer T(1≤T≤2000), which indicates the number of test cases. 
For each test case, there is only one line containing three integers a,b,c(−5≤a,b,c≤5).
输出
or each test case, output “YES” if the statement is true, or “NO” if not.
样例输入 复制
3
1 4 4
0 0 1
1 3 1
          样例输出 复制
YES
YES
NO