#include<bits/stdc++.h>usingnamespace std;intmain(){int a, b, c;
cin >> a >> b >> c;if(a + b > c and a + c > b and c + b > a){if(a == b and a == c and b == c)
cout <<"It is a equilateral triangle.";elseif(a == b or a == c or c == b)
cout <<"It is a isoceles triangle.";else
cout <<"It is a common triangle.";}else
cout <<"It is not a triangle.";return0;}
共 3 条回复
DZM AK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
zzr AK IOI!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!