Source Code
t = int(input())
for i in range (t):
	x,y = map(int,input().split())
	value = x+y - (x % y)
	if x % y == 0:
	    print(x)
	else:
	    print(y)
Copy
AZOZ with an O (EZ Version) acaard
Python 3
26 ms
2.8 MB
Wrong Answer