Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
971 | 胡嘉诚 | 判断三角形形状 | C++ | Wrong Answer | 66 | 0 MS | 252 KB | 265 | 2019-09-25 20:47:55 |
#include<iostream> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a+b>c&&a+c>b&&b+c>a){ if(a*a+b*b==c*c||c*c+b*b==a*a||a*a+c*c==b*b){ printf("2"); }else if(a*a+b*b>c*c||a*a+c*c>b*b||c*c+b*b>a*a){ printf("3"); }else printf("1"); } }