T = int(input())
S = dict()
for _ in range(T):
repeat, words = input().split()
output = ''
for word in words:
output += word * int(repeat)
print(output)
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
Baekjoon 1316번(python) (0) | 2019.04.29 |
---|---|
Baekjoon 1157번(python) (1) | 2019.04.29 |
Baekjoon 10809번(python) (0) | 2019.04.29 |
Baekjoon 11654번(python) (0) | 2019.04.29 |
Baekjoon 10039번(python) (0) | 2019.04.28 |