#include <stdio.h> #include<math.h> int main() { double a, b, c; while (scanf("%lf %lf %lf", &a, &b, &c) != EOF) { // 关键是使用余弦定理 double n1, n2, n3; n1 = pow(a, 2) + pow(b, 2) - pow(c, 2); n2 = pow(a, 2) + pow(c, 2) - pow(b, 2); n3 = pow(b, 2) + pow(c, 2) - pow(a, 2); double ans = n1 * n2 * n3; if (ans == 0)printf("直角三角形"); else if (ans < 0)printf("钝角三角形"); else printf("锐角三角形"); printf("\n"); } return 0; }