| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1173 | 倪邢暄 | 判断三角形形状 | C++ | Accepted | 100 | 0 MS | 256 KB | 429 | 2019-10-04 19:40:07 |
#include<iostream> int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); if(c>=a&&c>=b){ if(a*a+b*b<c*c) printf("3"); else if(a*a+b*b==c*c) printf("2"); else printf("1"); } else if(b>=a&&b>=c){ if(a*a+c*c<b*b) printf("3"); else if(a*a+c*c==b*b) printf("2"); else printf("1"); } else{ if(c*c+b*b<a*a) printf("3"); else if(c*c+b*b==a*a) printf("2"); else printf("1"); } return 0; }