Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133055 王奕杰 11判断三角形 C++ Wrong Answer 1 MS 264 KB 646 2025-10-13 19:07:13

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,m; cin>>a>>b>>c; if(b+c>a && b+a>c && a+c>b){ if(a==b || a==c || b==c){ cout<<"Isosceles Triangle"; } if(a==b && b==c){ cout<<"Equilateral Triangle"; } if(a*a+b*b==c*c || b*b+c*c==a*a || a*a+c*c==b*b){ cout<<"Right Triangle"; } } else{ cout<<"NO"; } return 0; }


Run Info:

------Input------
12 19 20
------Answer-----
Simple Triangle
------Your output-----