Run ID:163323
提交时间:2026-10-24 19:43:59
#include <iostream> using namespace std; int main() { int t; cin >> t; while(t--) { int a, b, c; cin >> a >> b >> c; // 判断直角 bool right = (a*a + b*b == c*c) || (a*a + c*c == b*b) || (b*b + c*c == a*a); // 判断等腰 bool iso = (a == b) || (a == c) || (b == c); if(right) cout << "good" << endl; else if(iso) cout << "perfect" << endl; else cout << "just a triangle" << endl; } return 0; }