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/12/24 10:29:12
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)