#include<stdio.h>
int main()
{
int i = 0, n;
long long int a, b, c;
scanf("%d", &n);
while(n--)
{
scanf("%lld %lld %lld", &a, &b, &c);
if(a+b<=c || b+c<=a || a+c<=b)
{
printf("Case %d: Invalid\n", ++i);
}
else if(a == b && b == c)
{
printf("Case %d: Equilateral\n", ++i);
}
else if(a == b || b == c || c == a)
{
printf("Case %d: Isosceles\n", ++i);
}
else
{
printf("Case %d: Scalene\n", ++i);
}
}
return 0;
}
int main()
{
int i = 0, n;
long long int a, b, c;
scanf("%d", &n);
while(n--)
{
scanf("%lld %lld %lld", &a, &b, &c);
if(a+b<=c || b+c<=a || a+c<=b)
{
printf("Case %d: Invalid\n", ++i);
}
else if(a == b && b == c)
{
printf("Case %d: Equilateral\n", ++i);
}
else if(a == b || b == c || c == a)
{
printf("Case %d: Isosceles\n", ++i);
}
else
{
printf("Case %d: Scalene\n", ++i);
}
}
return 0;
}
Comments
Post a Comment