In the television program "Shopping Street" of CCTV-2,two people,A and B are guessing price of a given item.You are asked to decide whose price is closer to the real price.输入There are multiple test cases.The first line of input is an integer T (T
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/13 12:43:24
![In the television program](/uploads/image/z/14301912-48-2.jpg?t=In+the+television+program+%22Shopping+Street%22+of+CCTV-2%2Ctwo+people%2CA+and+B+are+guessing+price+of+a+given+item.You+are+asked+to+decide+whose+price+is+closer+to+the+real+price.%E8%BE%93%E5%85%A5There+are+multiple+test+cases.The+first+line+of+input+is+an+integer+T+%28T)
In the television program "Shopping Street" of CCTV-2,two people,A and B are guessing price of a given item.You are asked to decide whose price is closer to the real price.输入There are multiple test cases.The first line of input is an integer T (T
In the television program "Shopping Street" of CCTV-2,two people,A and B are guessing price of a given item.You are asked to decide whose price is closer to the real price.
输入
There are multiple test cases.The first line of input is an integer T (T
In the television program "Shopping Street" of CCTV-2,two people,A and B are guessing price of a given item.You are asked to decide whose price is closer to the real price.输入There are multiple test cases.The first line of input is an integer T (T
int main(int argc, char** argv)
{
int T;
int P, PA, PB;
int i;
scanf("%d", &T);
while(T--)
{
scanf("%d %d %d", &P, &PA, &PB);
if( (P-PA)