#include <bits/stdc++.h>
using namespace std;
const int N = 1e2 + 5;
char ans[N][N];
int main(){
cin.tie(0)->sync_with_stdio(0);
for(int i=0;i<100;i++){
for(int j=0;j<100;j++){
cout << "01"[(j%2&&i>0) ^ (i==0&&j==0) ^ (i==99&&j%2==0) ^ (i==99&&j==0)];
}
cout << "\n";
}
return 0;
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include <bits/stdc++.h> using namespace std; const int N = 1e2 + 5; char ans[N][N]; int main(){ cin.tie(0)->sync_with_stdio(0); for(int i=0;i<100;i++){ for(int j=0;j<100;j++){ cout << "01"[(j%2&&i>0) ^ (i==0&&j==0) ^ (i==99&&j%2==0) ^ (i==99&&j==0)]; } cout << "\n"; } return 0; } |
English