#CF2009A. Minimize!
Minimize!
题目描述
给你两个整数 和 () 。 在 () 的所有可能整数值中,求 的最小值。
输入格式
第一行包含 () -测试用例数。 每个测试用例包含两个整数 和 () 。
输出格式
对于每个测试用例,另起一行输出 的最小可能值。
样例
3
1 2
3 10
5 5
1
7
0
样例说明
In the first test case, you can choose and obtain an answer of . It can be shown this is the minimum value possible.
In the second test case, you can choose and obtain an answer of . It can be shown this is the minimum value possible.
来源
Codeforces 2009A,英文题名 Minimize!。