| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147942 | 伊建润 | 判断三角形形状 | C++ | Accepted | 1 MS | 272 KB | 562 | 2026-02-09 09:01:03 |
#include <iostream> using namespace std; int main() { int t; cin >> t; while (t--) { int a, b, c; cin >> a >> b >> c; bool isRight = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a); bool isIsosceles = (a == b) || (a == c) || (b == c); if (isRight) { cout << "good" << endl; } else if (isIsosceles) { cout << "perfect" << endl; } else { cout << "just a triangle" << endl; } } return 0; }