1913: 【CSP二维数组】鲜花方阵█

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

Description

光明小学艺术节快要来了,老师要求同学们布置一个 lns="http://www.w3.org/1998/Math/MathML">n×n 的花盆方阵( lns="http://www.w3.org/1998/Math/MathML">n 是奇数, lns="http://www.w3.org/1998/Math/MathML">n9 );
如果 lns="http://www.w3.org/1998/Math/MathML">

n=5 ,那么方阵的形状如下图所示:


如果 lns="http://www.w3.org/1998/Math/MathML">n=7 ,那么方阵的形状如下图所示:

请读入一个整数 lns="http://www.w3.org/1998/Math/MathML">n (奇数),输出如图所示的方阵,为了方便输出,用 lns="http://www.w3.org/1998/Math/MathML">1 表示黄色的花盆,lns="http://www.w3.org/1998/Math/MathML">0 表示红色花盆,输出时数字场宽设置为lns="http://www.w3.org/1998/Math/MathML">3 
例如: lns="http://www.w3.org/1998/Math/MathML">n=5 ,那么实际要输出的方阵的结果如下:

n=7 ,那么实际要输出的方阵的结果如下:


Input

一个整数 lns="http://www.w3.org/1998/Math/MathML">n

Output

如图所示的图形

Sample Input Copy

5

Sample Output Copy

  1  1  0  1  1
  1  0  1  0  1
  0  1  0  1  0
  1  0  1  0  1
  1  1  0  1  1