정답
T = int(input())
for t in range(T):
num, S = input().split()
text = ''
for s in S:
text += int(num) * s
print(text)
2
3 rafa
rrraaafffaaa
4 grace
ggggrrrraaaacccceeee
내가 쓴 답
T = int(input())
for t in range(T):
num, S = input().split()
for s in range(len(S)):
print(int(num) * S[s], end="")
2
3 rafa
rrraaafffaaa4 grace
ggggrrrraaaacccceeee