1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
int T[100][100];
int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);
	int n=100;
	T[0][0]=1;
	rep(i, n-1) T[1][i+1]=1;
	for(int i=2; i<n; ++i) {
		if(i%2==0) T[i][n-1]=1; else T[i][0]=1;
		if(i%2==1) rep(j, n) T[i][j]^=1;
	}
	rep(i, n) {
		rep(j, n) cout << T[i][j];
		cout << '\n';
	}
}