发布网友 发布时间:2022-04-21 23:40
共2个回答
热心网友 时间:2023-07-08 08:22
#include <stdio.h>
int main(int argc, char **argv) {
int a, b, c;
while ((scanf("%d %d %d", &a, &b, &c)) != EOF) {
if (a * a + b * b == c * c || a * a + c * c == b * b || b * b + c * c == a * a)
printf("good\n");
else if (a == b || b == c || c == b)
printf("perfect\n");
else
printf("just a triangle\n");
}
return 0;
}
热心网友 时间:2023-07-08 08:23
#include