#include <bits/stdc++.h>
using namespace std;
#define FOR(i,l,r) for(int i = (l); i <= (r); i++)
#define FORD(i,l,r) for(int i = (l); i >= (r); i--)
using num = double;
using ind = long long;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
string s1="";
s1.push_back('1');
FOR(i,1,99) s1.push_back('0');
cout << s1 << '\n';
s1.clear();
s1.push_back('0');
FOR(i,1,99) s1.push_back('1');
cout << s1 << '\n';
s1.clear();
FOR(i,1,49){
FOR(i,1,99) s1.push_back('1');
s1.push_back('0');
s1.push_back('\n');
s1.push_back('1');
FOR(i,1,99) s1.push_back('0');
cout << s1 << '\n';
s1.clear();
}
}
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 | #include <bits/stdc++.h> using namespace std; #define FOR(i,l,r) for(int i = (l); i <= (r); i++) #define FORD(i,l,r) for(int i = (l); i >= (r); i--) using num = double; using ind = long long; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); string s1=""; s1.push_back('1'); FOR(i,1,99) s1.push_back('0'); cout << s1 << '\n'; s1.clear(); s1.push_back('0'); FOR(i,1,99) s1.push_back('1'); cout << s1 << '\n'; s1.clear(); FOR(i,1,49){ FOR(i,1,99) s1.push_back('1'); s1.push_back('0'); s1.push_back('\n'); s1.push_back('1'); FOR(i,1,99) s1.push_back('0'); cout << s1 << '\n'; s1.clear(); } } |
English