| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 694 | 陶俊宸 | 判断三角形形状 | C++ | Accepted | 100 | 0 MS | 256 KB | 310 | 2019-09-21 15:50:28 |
#include<iostream> int main(){ int a,b,c,d,t,x,y,z; 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 (b>c){ t=b,b=c,c=t; } x=a*a,y=b*b,z=c*c; if (a+b>c) { if (x+y>z) d=1; if (x+y==z) d=2; if (x+y<z) d=3; printf("%d",d); return 0; } }