QOJ.ac

QOJ

时间限制: 1 s 内存限制: 1024 MB 总分: 100

#3721. 简单代数

统计

给定函数 $f(x, y) = a x^2 + b xy + c y^2$,判断对于所有 $x, y \in \mathbb{R}$,是否都有 $f(x, y) \geq 0$ 成立。

输入格式

输入包含零个或多个测试用例,并以文件结束符(EOF)终止。

每个测试用例包含三个整数 $a, b, c$。

  • $-10 \leq a, b, c \leq 10$
  • 测试用例数量不超过 $10^4$。

输出格式

对于每个测试用例,如果 $f(x, y) \geq 0$ 总是成立,则输出 "Yes",否则输出 "No"。

样例

输入格式 1

1 -2 1
1 -2 0
0 0 0

输出格式 1

Yes
No
Yes

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.