Chef has closed his restaurant and decided to run a fruit stand instead. His signature dish is a fruit chaat consisting of bananas and apple. He currently has bananas and apples. How many chaats can he make with the fruits he currently has?
Input Format
- The first line will contain , the number of testcases. Then the testcases follow.
- Each testcase consists of a single line containing two space separated integers - and
Output Format
For each testcase, output the answer on a new line.
Constraints
Sample Input 1
3
72 50
38 93
51 4
Sample Output 1
36
19
4
Explanation
Test Case : Chef can make chaats using bananas and apples.
Test Case : Chef can make chaats using bananas and apples.
Test Case : Chef can make chaats using bananas and apples.
Solution:
No comments:
Post a Comment