| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74175 | 小徐老师 | 判断三角形形状 | C++ | Accepted | 4 MS | 268 KB | 344 | 2024-05-23 20:35:54 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c; cin>>n; for(int i = 0; i < n; ++i){ cin>>a>>b>>c; if(a==b or a==c or b==c){ cout<<"perfect"<< endl; }else if(a*a+b*b==c*c or b*b+c*c==a*a or a*a+c*c==b*b){ cout<<"good" << endl; }else{ cout<<"just a triangle"<< endl; } } return 0; }