作业帮 > 英语 > 作业

英语翻译DescriptionSuperbowl Sunday is nearly here.In order to p

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/13 06:01:59
英语翻译
Description
Superbowl Sunday is nearly here.In order to pass the time waiting for the half-time commercials and wardrobe malfunctions,the local hackers have organized a betting pool on the game.Members place their bets on the sum of the two final scores,or on the absolute difference between the two scores.
Given the winning numbers for each type of bet,can you deduce the final scores?
Input
The first line of input contains n,the number of test cases.n lines follow,each representing a test case.Each test case gives s and d,non-negative integers representing the sum and (absolute) difference between the two final scores.
Output
For each test case,output a line giving the two final scores,largest first.If there are no such scores,output a line containing "impossible".Recall that football scores are always non-negative integers.
如果我需要在线翻译成这种结果,我还用发到百度知道上吗?
做人要厚道~
超级杯周日就快到了.为了消磨时间,等待半场的广告,当地的盘口已经组织了一次赌博.会员可以对两队得分总和,或两队分差进行投注.
已经给出各种竞猜方式的结果,你能猜出最后比分么?
输入
第一行输入含有n个测试.n条线根在后面,每条线代表一个测试.每个测试的结果分别是S和D,两个非负整数,代表着两队得分总和和得分差.
输出
对于每个测试,输出线给这两个最终得分,大的在前面.如果没有这样的成绩,输出线含有“不可能”.不要忘了,分数总是非负整数.