题解 2001: 边长判断

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

边长判断 (C语言代码)超好懂

摘要:解题思路: (a>b?a:b)>(a>c?a:c)?(a>b?a:b):(a>c?a:c)选出最大值,即为斜边。斜边的平方=直角边1的平方+直角边2的平方,但是不知道谁是斜边谁是直角边。就用这种方法:……

坤坤也能看懂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a*a+b*b==c*c||b*……

直角三角形判断

摘要:解题思路:先判断哪个边是斜边注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max,min; scanf("%d %d %d",&a,&b,&c); ……

边长判断-题解(C语言代码)

摘要:解题思路:思路比较简单   两边的平方和等于第三边的平方。注意事项:输出YES 和NO 。参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d……

边长判断有手就行

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max,min,m; scanf("%d%d%d",&a,&b,&c); max=a>b?a……

普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c);if(a*a+b*b==c*c||b*b+c……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a, b, c;    scanf("%d %d %d", &a, &b, &c);    if ……

2001: 边长判断

摘要:## if判断 ```c++ #include using namespace std; int main() { int a,b,c; cin>>a>>b>>c; ……