Finally, College has started calling students back to campus. There are so many students and thus due to some safety measures the college can’t call back all the students on the same day. It currently has the capacity of screening
students on a single day. There is a total of students. What's the minimum number of days required for all the students to be back on the campus?
Input Format
- The first line of the input contains a single integer denoting the number of test cases. The description of test cases follows.
- The first and only line of each test case contains two space-separated integers .
Output Format
For each test case, print a single line containing one integer - the minimum number of days required for all the students to be back on the campus.
Constraints
Sample Input 1
3
3 3
3 2
4 3
Sample Output 1
1
2
2
Explanation
Test case 1: Since and , we can call all students back to campus on the first day itself. Hence it requires only day for all students to be back on campus.
Test case 2: We have and , so we can't call all the students back to campus on a single day. But we can call student on the first day and the remaining students on the second day. Therefore, we require a minimum of days for all students to be back on campus.
Test case 3: We have and , so we can't call all the students back to campus on a single day. But we can call students on the first day and the remaining students on the second day. Therefore, we require a minimum of days for all students to be back on campus.
ConversionConversion EmoticonEmoticon