#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> using namespace std; //using namespace __gnu_pbds; #define ll long long #define ull unsigned ll #define pb push_back #define pii pair<int,int> #define pl pair<ll,ll> #define F first #define S second #define pq priority_queue #define all(x) x.begin(), x.end() #define deb(x) cout << #x << " = " << x << '\n'; #define deb2(x,y) cout << #x << " = " << x << ", " << #y << " = " << y << '\n'; constexpr int M = 1e9+7; constexpr int N = 1e6+7; constexpr bool debug = 0; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); /* cout << "1"; for(int x = 1; x < 100; x++) cout << 0; cout << '\n'; cout << '0'; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; cout << '0'; for(int x = 1; x < 100; x++) cout << (x&1); cout << '\n'; cout << '0'; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; cout << "1"; for(int x = 1; x < 100; x++) cout << 0; cout << '\n'; for(int y = 5; y < 100; y++){ for(int x = 0; x < 100; x++) cout << 0; cout << '\n'; } */ //igniter cout << "1"; for(int x = 1; x < 100; x++) cout << 0; cout << '\n'; for(int y = 1; y < 50; y++){ cout << "0"; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; for(int x = 0; x < 99; x++) cout << 1; cout << "0"; cout << '\n'; } cout << "0"; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; return 0; }
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | #include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> //#include <ext/pb_ds/tree_policy.hpp> using namespace std; //using namespace __gnu_pbds; #define ll long long #define ull unsigned ll #define pb push_back #define pii pair<int,int> #define pl pair<ll,ll> #define F first #define S second #define pq priority_queue #define all(x) x.begin(), x.end() #define deb(x) cout << #x << " = " << x << '\n'; #define deb2(x,y) cout << #x << " = " << x << ", " << #y << " = " << y << '\n'; constexpr int M = 1e9+7; constexpr int N = 1e6+7; constexpr bool debug = 0; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); /* cout << "1"; for(int x = 1; x < 100; x++) cout << 0; cout << '\n'; cout << '0'; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; cout << '0'; for(int x = 1; x < 100; x++) cout << (x&1); cout << '\n'; cout << '0'; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; cout << "1"; for(int x = 1; x < 100; x++) cout << 0; cout << '\n'; for(int y = 5; y < 100; y++){ for(int x = 0; x < 100; x++) cout << 0; cout << '\n'; } */ //igniter cout << "1"; for(int x = 1; x < 100; x++) cout << 0; cout << '\n'; for(int y = 1; y < 50; y++){ cout << "0"; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; for(int x = 0; x < 99; x++) cout << 1; cout << "0"; cout << '\n'; } cout << "0"; for(int x = 1; x < 100; x++) cout << 1; cout << '\n'; return 0; } |