Run ID:123628
提交时间:2025-07-07 19:57:52
#include<iostream> using namespace std; int main() { int t, a, b, c ,i; cin>>t; for(i=0;i<t;i++) { cin>>a; cin>>b; cin>>c; if(a*a+b*b==c*c||b*b+c*c==a*a||a*a+c*c==b*b) { cout<<"good"<<endl; } else if(a==b||a==c||b==c) { cout<<"perfect"<<endl; } else { cout<<"just a triangle"<<endl; } } return 0; }