Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160969 王慕哲 判断三角形形状 C++ Accepted 5 MS 272 KB 420 2026-09-26 17:33:16

Tests(1/1):


Code:

#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||b*b+c*c==a*a||c*c+a*a==b*b){ cout<<"good"<<endl; } else if(a==b||b==c||c==a){ cout<<"perfect"<<endl; } else{ cout<<"just a triangle"<<endl; } } return 0; }