#include<stdio.h>
#include<math.h>
int main()
{
double x, y, z, a, b, c;
while(scanf("%lf %lf %lf", &x, &y, &z))
{
if(x == 0 && y == 0 && z == 0)
{
break;
}
a = sqrt(x*x + y*y);
b = sqrt(y*y + z*z);
c = sqrt(x*x + z*z);
if(a == z || b == x || c == y)
{
printf("right\n");
}
else
{
printf("wrong\n");
}
}
return 0;
}
#include<math.h>
int main()
{
double x, y, z, a, b, c;
while(scanf("%lf %lf %lf", &x, &y, &z))
{
if(x == 0 && y == 0 && z == 0)
{
break;
}
a = sqrt(x*x + y*y);
b = sqrt(y*y + z*z);
c = sqrt(x*x + z*z);
if(a == z || b == x || c == y)
{
printf("right\n");
}
else
{
printf("wrong\n");
}
}
return 0;
}
Comments
Post a Comment