#include <bits/stdc++.h>
#include <random>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vi> vvi;
typedef vector<bool> vb;
#define eb emplace_back
#define pb push_back
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rloop(i, a, b) for (int i = a; i >= b; i--)
#define all(x) (x).begin(), (x).end()
int main()
{
cin.tie(0)->sync_with_stdio(false);
mt19937 rng(time(0));
uniform_int_distribution<int> zakres(0, 1);
loop(i, 0, 100)
{
loop(j, 0, 100)
cout << zakres(rng);
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 | #include <bits/stdc++.h> #include <random> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<vi> vvi; typedef vector<bool> vb; #define eb emplace_back #define pb push_back #define loop(i, a, b) for (int i = a; i < b; i++) #define rloop(i, a, b) for (int i = a; i >= b; i--) #define all(x) (x).begin(), (x).end() int main() { cin.tie(0)->sync_with_stdio(false); mt19937 rng(time(0)); uniform_int_distribution<int> zakres(0, 1); loop(i, 0, 100) { loop(j, 0, 100) cout << zakres(rng); cout << '\n'; } return 0; } |
English