| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147964 | 徐启航 | 判断三角形形状 | C++ | Accepted | 3 MS | 272 KB | 561 | 2026-02-09 09:33:40 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<ctime> #include<cstdlib> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,t; 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||a*a+c*c==b*b||b*b+c*c==a*a) cout<<"good"<<endl; else cout<<"just a triangle"<<endl; }return 0; }