import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int input = in.nextInt();
for (int i = 0; i < input; i++) {
int temp = in.nextInt();
String line = in.next();
String[] result = line.split("");
for (int j = 0; j < result.length; j++) {
for (int k = 0; k < temp; k++) {
System.out.print(result[j]);
}
}
System.out.println();
}
}
}
댓글