import math N=int(input()) for i in range(N): A,B=map(int, input().split()) log = math.log10(A)*B Z=int(log) xy = log-Z l=0.0 r = 9.9 while l+0.1