| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140489 | Kevin | 判断三角形形状 | C++ | Accepted | 3 MS | 268 KB | 338 | 2025-12-14 23:12:15 |
#include<bits/stdc++.h> using namespace std; int main() { int t,a,b,c; cin>>t; for(int i=1;i<=t;i++){ cin>>a>>b>>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||b==c||c==a){ cout<<"perfect"<<endl; } else{ cout<<"just a triangle"<<endl; } } return 0; }