#include<bits/stdc++.h>
using namespace std;
int main() {
string zera = "";
string jedynki = "";
for(int i = 0; i < 98; i++){
zera += '0';
jedynki += '1';
}
cout << 1 << zera << 0 << endl;
for(int i = 1; i < 100; i++){
if(i % 2 == 1) cout << 0 << jedynki << 1 << endl;
else cout << 0 << zera << 1 << endl;
}
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include<bits/stdc++.h> using namespace std; int main() { string zera = ""; string jedynki = ""; for(int i = 0; i < 98; i++){ zera += '0'; jedynki += '1'; } cout << 1 << zera << 0 << endl; for(int i = 1; i < 100; i++){ if(i % 2 == 1) cout << 0 << jedynki << 1 << endl; else cout << 0 << zera << 1 << endl; } } |
English