#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
vector<vector<int>> t (100, vector<int> (100, 0));
for (int i = 0; i < 50; i++) {
t[2*i+1][0] = 1;
for (int j = 0; j < 99; j++) {
t[2*i][j] = 1;
}
}
t[0][0] = 0;
t[0][99]= 1;
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
cout << t[i][j];
}
cout << '\n';
}
}
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; #define ll long long int main() { ios_base::sync_with_stdio(0); cin.tie(0); vector<vector<int>> t (100, vector<int> (100, 0)); for (int i = 0; i < 50; i++) { t[2*i+1][0] = 1; for (int j = 0; j < 99; j++) { t[2*i][j] = 1; } } t[0][0] = 0; t[0][99]= 1; for (int i = 0; i < 100; i++) { for (int j = 0; j < 100; j++) { cout << t[i][j]; } cout << '\n'; } } |
English