Time Limit: 1 Sec
Memory Limit: 256 MB
Submission:26
AC:10
Score:0
Now give three parameters n, c1, c2 for the number of rows and two symbols respectively. I hope you print out a pattern consisting of c1 and c2, starting from the innermost circle and using c1 and c2 alternately (ie c1 is the center). Point), and the four corners of the outermost circle (if any) are empty (requires a space to be output).
The input contains three parameters, respectively n , c1 , c2 , which represent the number of lines of the pattern and the symbols c1, c2. (1<=n<60, and n is an odd number)
input:
5 A B
output:
AAA
ABBBA
ABABA
ABBBA
AAA