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/11/15 18:44:18
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)