풀이
T=int(input()) arr=[] for i in range(T): n,m=map(str,input().split(' ')) list(m) s='' for i in range(len(m)): s=s+m[i]*int(n) arr.append(s) for i in arr: print(i)