C语言
include [HTML_REMOVED]
int main ()
{
int a,b,c,d,e,f,apple,banana;
scanf(“%d”,&a);
scanf(“%d”,&b);
scanf(“%d”,&c);
scanf(“%d”,&d);
scanf(“%d”,&e);
scanf(“%d”,&f);
apple=a3+b2+c1;
banana=d3+e2+f1;
if(apple>=banana)
{
if(apple>banana)
printf(“A”);
else printf(“T”);
}
else
printf(“B”);
return 0;
}