#include <cstdio>
const int N = 100;
void put(char c, int count = 1) {
while (count-- > 0) putchar(c);
}
int main()
{
put('0'); put('1', N-1); put('\n');
for (int i=1; i<50; ++i) {
put('1'); put('0', N-1); put('\n');
put('1', N-1); put('0'); put('\n');
}
put('1'); put('0', N-1); put('\n');
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <cstdio> const int N = 100; void put(char c, int count = 1) { while (count-- > 0) putchar(c); } int main() { put('0'); put('1', N-1); put('\n'); for (int i=1; i<50; ++i) { put('1'); put('0', N-1); put('\n'); put('1', N-1); put('0'); put('\n'); } put('1'); put('0', N-1); put('\n'); } |
English