Source Code
t=int(input())
k=[]

for i in range(t):
  x=int(input())
  y=int(input())
  while(x%y!=0):
    x=x+1
  k.append(x)
for i in range(len(k)):
  print(k[i])
Copy
AZOZ with an O (EZ Version) dalia tamimi
Python 2
17 ms
3.3 MB
Runtime Error