Run ID:160972

提交时间:2026-09-26 17:36:30

#include<bits/stdc++.h> using namespace std; int main(){ 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; } if(a==b || a==c || b==c){ cout<<"perfect"<<endl; } else{ cout<<"just a triangle"<<endl; } return 0; }