问题2480--Simple Algebra

2480: Simple Algebra

时间限制: 1 Sec  内存限制: 128 MB
提交: 48  解决: 13
[提交] [状态] [讨论版] [命题人:]

题目描述

Given function f(x, y) = ax2 + bxy + cy2, check if f(x, y)≤ 0 holds for all x, y ∈ R.

输入

The input contains zero or more test cases and is terminated by end-of-file.
Each test case contains three integers a, b, c.
• −10≤ a, b, c ≤ 10
• The number of tests cases does not exceed 104.

输出

For each case, output “Yes” if f(x, y) ≥0 always holds. Otherwise, output “No”.

样例输入

1 -2 1
1 -2 0
0 0 0

样例输出

Yes
No
Yes

来源/分类


[提交] [状态]