CODE:
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cstdio>
using namespace std;
char str[10] = "HDU";
int main()
{
int n;
int T;
scanf("%d", &T);
while(T--)
{
scanf("%d", &n);
for(int i = 0; i < 3*n; i++)
{
for(int j = 0; j < n; j++)
{
printf("%s", str);
}
printf("\n");
}
}
return 0;
}
#include <cstdlib>
#include <cstring>
#include <cstdio>
using namespace std;
char str[10] = "HDU";
int main()
{
int n;
int T;
scanf("%d", &T);
while(T--)
{
scanf("%d", &n);
for(int i = 0; i < 3*n; i++)
{
for(int j = 0; j < n; j++)
{
printf("%s", str);
}
printf("\n");
}
}
return 0;
}