作业帮 > 英语 > 作业

英语翻译One steps through integer points of the straight line.Th

来源:学生作业帮 编辑:拍题作业网作业帮 分类:英语作业 时间:2024/06/11 02:04:46
英语翻译
One steps through integer points of the straight line.The length of a step must be nonnegative and can be by one bigger than,equal to,or by one smaller than the length of the previous step.
What is the minimum number of steps in order to get from x to The length of the first and the last step must be 1.
不懂你的这个是什么专业来的,所以不好翻译.不过找到了网上英文的这个提的答案,(同样也看不懂 嘎嘎) 不过也许你能懂诶
Input and Output
Input consists of a line containing n,the number of test cases.For each test case,a line follows with two integers:0xy < 231.For each test case,print a line giving the minimum number of steps to get from x to y.
Sample Input
3
45 48
45 49
45 50
Sample Output
3
3
4