3565: uva11520 填充正方形

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:8 Solved:5

Sample Input Copy

2
3
...
...
...
3
...
A..
...

Sample Output Copy

Case 1:
ABA
BAB
ABA
Case 2:
BAB
ABA
BAB