FILE LINK:-Question5 Executable Files
NOTE:- EXECUTABLE FILES ARE DESIGNED TO TAKE INFINITE INPUTS TO FACILITATE SMOOTH TESTING. SO, NUMBER OF TEST CASES IS NOT TO BE PROVIDED AS INPUT IN THEM. REST OF THE INPUT TO BE GIVEN IN EXECUTABLES IS SAME AS SPECIFIED IN THE INPUT FORMAT.
Instructions:
Download file from above specified link, extract it for executable files and open README.txt file for further instructions.
Input Format:
The first will will contain an integer T denoting number of test cases. Thereafter, next T lines contain two space separated integers a and b.
Output Format:
For each test case print corresponding answer on a new line.
Constraints:
1 < T < 100
0 < a, b < 106