#T561. 正方形字符串

正方形字符串

Description

Now, please output the "ACM" string of a specified size. Specifically, we require the output string to be square (the number of rows equals the number of columns).

Input Format

The first line of input is a positive integer N (N ≤ 20), indicating there are N sets of data. This is followed by N lines of data, each containing a positive integer M (M ≤ 50), representing that there are M "ACM"s concatenated in one line.

Output Format

Output the specified square string.

2
1
2
ACM
ACM
ACM
ACMACM
ACMACM
ACMACM
ACMACM
ACMACM
ACMACM

代码在线