Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160973 郦辰希 判断三角形形状 C++ Accepted 3 MS 272 KB 422 2026-09-26 17:36:50

Tests(1/1):


Code:

#include <iostream> using namespace std; int main(){ int T,i,a,b,c; cin>>T; for(i=0;i<T;i++){ cin>>a>>b>>c; if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){ cout<<"good"; } else if (a==b || b==c || a==c){ cout<<"perfect"; } else{ cout<<"just a triangle"; } cout<<endl; } return 0; }