| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136027 | 丁俊杰 | 判断三角形形状 | C++ | Accepted | 6 MS | 268 KB | 437 | 2025-11-08 20:54:19 |
#include <iostream> // 里面有cin,cout等函数 #include<cmath> //里面有abs,sqrt,pow等函数 using namespace std; int main(){ int t; int a,b,c; cin>>t; for(int i=1;i<=t;i++) { cin>>a>>b>>c; if (a==b || b==c|| a==c) cout<<"perfect"<<endl; else if(a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a) cout<<"good"<<endl; else cout<<"just a triangle"<<endl; } }