Hazem is a really clever boy. He goes to school every day and always gets high marks in all of the quizzes he takes. Today he is not in a good mood to study, so he wants to buy and drink his favorite drink to feel better.
He has only $$$x$$$ pounds, and the drink costs $$$y$$$ pounds. Help him know what the minimum number of pounds he needs to borrow from his father so that he can buy the drink.
The first line contains a single integer $$$t$$$ $$$(1\leq t \leq 10^{5})-$$$ the number of testcases.
The only line of each test case contains two integers $$$x$$$ and $$$y$$$ $$$(1\leq x, y \leq 10^{5})-$$$ the number of pounds Hazem has and the cost of the drink, respectively.
For each test case, print one integer $$$-$$$ the minimum number of pounds he needs to borrow from his father so that he can buy the drink.
37 102 45 3
3 2 0
Name |
---|