문제출처 : https://www.acmicpc.net/problem/2675
#include <iostream>
#include <string>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
int T, R, i;
string S;
cin >> T;
while (T)
{
int k = 0;
cin >> R;
cin >> S;
int len = S.length();
for (int i = 0; i < len; i++)
for (int j = 0; j < R; j++)
cout << S[i];
cout << '\n';
T--;
}
return 0;
}