fork(2) download
  1. T = int(input())
  2.  
  3. p = []
  4.  
  5. for i in range(T):
  6. a, b = input().split()
  7. a = int(a)
  8. for i in range(len(b)):
  9. p.append(a*b[i])
  10. for i in p:
  11. print(i, end='')
  12. p = []
  13.  
Success #stdin #stdout 0.03s 9768KB
stdin
2
3 ABC
5 /HTP
stdout
AAABBBCCC/////HHHHHTTTTTPPPPP