Source Code
n = int(input())
while n > 0:
    x, y = input().split(" ")
    x = int(x)
    y = int(y)
    if x % y == 0:
        print(x)
    else: 
        k = x + (y - (x % y))
        print(k)
    n -= 1
Copy
AZOZ with an O (Needs a Carry) Heromnxpw0
Python 3
2067 ms
5.2 MB
Time Limit Exceeded