Run ID:160978
提交时间:2026-09-26 17:40:53
#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; while(T--){ int a,b,c; cin>>a>>b>>c; if(a*a+b*b==c*c || a*a+c*c==b*b || c*c+b*b==a*a){ cout<<"good"<<endl; } else if(a==b || a==c || b==c){ cout<<"perfect"<<endl; } else{ cout<<"just a triangle"<<endl; } } return 0; }