#include <bits/stdc++.h> #define all(x) (x).begin(),(x).end() using namespace std; using ll = long long; using ld = long double; //#define int l #define sz(x) ((int)(x).size()) using pii = pair<int,int>; using tii = tuple<int,int,int>; signed main() { cin.tie(0) -> sync_with_stdio(0); const int N = 100; for(int i = 0; i < N; i++) { if(i == 1) cout << ("0" + string(N - 1, '1')) << '\n'; else if(i == 0) cout << ("1" + string(N - 1, '0')) << '\n'; else if(i % 2 == 0) cout << (string(N - 1, '1') + "0") << '\n'; else if(i % 2 == 1) cout << ("1" + string(N - 1, '0')) << '\n'; } } /** Binecuvanteaza Doamne Ukraina. -- */
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include <bits/stdc++.h> #define all(x) (x).begin(),(x).end() using namespace std; using ll = long long; using ld = long double; //#define int l #define sz(x) ((int)(x).size()) using pii = pair<int,int>; using tii = tuple<int,int,int>; signed main() { cin.tie(0) -> sync_with_stdio(0); const int N = 100; for(int i = 0; i < N; i++) { if(i == 1) cout << ("0" + string(N - 1, '1')) << '\n'; else if(i == 0) cout << ("1" + string(N - 1, '0')) << '\n'; else if(i % 2 == 0) cout << (string(N - 1, '1') + "0") << '\n'; else if(i % 2 == 1) cout << ("1" + string(N - 1, '0')) << '\n'; } } /** Binecuvanteaza Doamne Ukraina. -- */ |