#include "bits/stdc++.h" using namespace std; #define rep(i,a,b) for(int i=(a); i<(b); ++i) #define all(x) x.begin(),x.end() #define sz(x) int(x.size()) typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; int main(){ cin.tie(NULL),cin.sync_with_stdio(false); cout << '1' << string(99,'0') << '\n'; rep(i,1,100){ if (i&1){ cout << '0' << string(99,'1') << '\n'; }else{ cout << string(99,'0') << "1\n"; } } }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include "bits/stdc++.h" using namespace std; #define rep(i,a,b) for(int i=(a); i<(b); ++i) #define all(x) x.begin(),x.end() #define sz(x) int(x.size()) typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<vi> vvi; int main(){ cin.tie(NULL),cin.sync_with_stdio(false); cout << '1' << string(99,'0') << '\n'; rep(i,1,100){ if (i&1){ cout << '0' << string(99,'1') << '\n'; }else{ cout << string(99,'0') << "1\n"; } } } |