Problem4687--杨辉三角变形

4687: 杨辉三角变形

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Sample 1 Input

12

Sample 1 Output

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

HINT

a[i][j]=a[i-1][j]^a[i-1][j-1];

Source/Category