Source Code
T=int(input())

for i in range(T):
    x, y = map(int,input().split())
   
    j=x
    
    while True:
        if j%y==0:
            print(j)
            break
        else:
            j+=1
        
 
Copy
AZOZ with an O (EZ Version) safareto
Python 3
2037 ms
3.1 MB
Time Limit Exceeded