Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
692 陶俊宸 判断三角形形状 C++ Wrong Answer 33 0 MS 252 KB 301 2019-09-21 15:41:59

Tests(1/3):


#include<iostream> int main(){ int a,b,c,d,t; scanf("%d %d %d",&a,&b,&c); if (a>b){ t=a,a=b,b=t; } if (a>c){ t=a,a=c,c=t; } if (c>b){ t=c,c=b,b=t; } if (a+b>c) { if (a*a+b*b>c*c) d=1; if (a*a+b*b==c*c) d=2; if (a*a+b*b<c*c) d=3; printf("%d",d); return 0; } }


Judgement Protocol: