王倩倩 提交的代码
提交时间: 2020 五月
语言: C++
运行时间: 0ms
占用内存: 253K
Accepted
代码内容

登录之后查看代码,点此登录账号

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
using namespace std;
int main() {

	int x[3];
	while (cin >> x[0]>>x[1]>>x[2]) {
		//判断大小
		sort(x, x + 3);
		int m = x[0] * x[0] + x[1] * x[1];
		int n = x[2] * x[2];
		if (m == n) {
			printf("直角三角形\n");
		}
		else if (m > n) {
			printf("锐角三角形\n");
		}
		else if (m < n) {
			printf("钝角三角形\n");
		}
	}

	return 0;
}