#K96307. Next Nearest Multiple

    ID: 39057 Type: Default 1000ms 256MiB

Next Nearest Multiple

Next Nearest Multiple

Given two integers N and M, the task is to calculate the smallest multiple of N which is greater than or equal to M. In mathematical terms, find the value:

$$X = \lceil \frac{M}{N} \rceil \times N$$

where \(X\) is the required multiple. This problem needs to be solved for multiple test cases. Make sure your solution is efficient and handles standard input and output as described.

inputFormat

The first line contains an integer T denoting the number of test cases. Each of the following T lines contains two space-separated integers: N and M.

outputFormat

For each test case, output the smallest multiple of N that is greater than or equal to M on a new line.

## sample
1
10 95
100

</p>