1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include<bits/stdc++.h>

using namespace std;

const int n = 100;

bool tab[n+1][n+1];

int32_t main(){

    for(int y = 1; y <= n ; y++){
        for(int x = 1 ; x <= n ; x++){
            if(y%2 == 0){
                tab[x][y] = 1;
            }
            if(x == 1){
                tab[x][y] = 0;
            }
            if(x == n){
                tab[x][y] = 1;
            }
        }
    }
    tab[n][1] = 0;
    // tab[n][2] = 1;
    tab[1][1] = 1;

    for(int y = 1; y <= n ; y++){
        for(int x = 1 ; x <= n ; x++){
            cout << tab[x][y];
        }
        cout << "\n";
    }

    return 0;
}