/I am confident that my answer is correct but when i was submitted this answer.it was showing wrong answer/
#include<stdio.h>
int main()
{
int a,b,c,t,i;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
{
if(b>c)
printf("%d",b);
else
printf("%d",c);
}
if(b>a&&b>c)
{
if(a>c)
printf("%d",a);
else
printf("%d",c);
}
if(c>a&&c>b)
{
if(a>b)
printf("%d",a);
else
printf("%d",b);
}
}
return 0;
}