#include <stdio.h> int main() { int a = 0; int b = 0; int c = 0; //多组输入 while (~scanf(" %d%d%d", &a, &b, &c)) { if ((a + b > c) && (a + c > b) && (b + c > a)) { //是三角形 if ((a == b) && (b == c)) { //等边三角形 printf("Equilateral triangle!\n"); } else if (((a == b) && (b != c)) || ((b == c) && (c != a)) || ((a == c) && (c != b))) { //等腰三角形 printf("Isosceles triangle!\n"); } else { //其余三角形 printf("Ordinary triangle!\n"); } } else { //不是三角形 printf("Not a triangle!\n"); } } return 0; }