| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148143 | 吴昊 | 判断三角形形状 | C++ | Accepted | 4 MS | 276 KB | 431 | 2026-02-09 17:43:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int a1; cin>>a1; for(int i=1;i<=a1;i++){ int a=0,b=0,c=0; cin>>a>>b>>c; if((a*a+b*b==c*c||a*a+c*c==b*b)||b*b+c*c==a*a){ cout<<"good"<<endl; } else if((a==b||b==c)||a==c){ cout<<"perfect"<<endl; }else{ cout<<"just a triangle"<<endl; } } }