[此贴子已经被作者于2017-11-14 11:57编辑过]
#include <stdio.h> int main( void ) { unsigned n; scanf( "%u", &n ); while( n-- ) { unsigned a, b, c; scanf( "%u%u%u", &a, &b, &c ); if( b == c ) puts( "A" ); else if( a == c ) puts( "B" ); else puts( "C" ); } return 0; }