#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); string first(100, '0'); first[99] = '1'; string even(100, '1'); even[99] = '0'; string odd(100, '0'); odd[0] = '1'; cout << first << "\n" << even << "\n"; for(int i=0; i<49; i++) cout << odd << "\n" << even << "\n"; return 0; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); string first(100, '0'); first[99] = '1'; string even(100, '1'); even[99] = '0'; string odd(100, '0'); odd[0] = '1'; cout << first << "\n" << even << "\n"; for(int i=0; i<49; i++) cout << odd << "\n" << even << "\n"; return 0; } |