Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96867 杜春雨 11判断三角形 C++ Wrong Answer 0 MS 272 KB 575 2024-11-09 17:23:16

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; cin>>a>>b>>c; if(a+b>c||b+c>a){ cout<<"ptsjx"<<endl; if(a==b||b==c){ cout<<"dysjx"<<endl; } if(a==b&&b==c){ cout<<"dbsjx"<<endl; } if(a*a==b*b+c*c||b*b==a*a+c*c||c*c==a*a+b*b){ cout<<"zjsjx"<<endl; } } return 0; }


Run Info:

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