Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define endl '\n'
- using namespace std;
- mt19937_64 gen__(chrono::system_clock::now().time_since_epoch().count());
- long long rd(long long a, long long b) { return uniform_int_distribution<long long>(a, b)(gen__); }
- int main()
- {
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- int max_n, max_d;
- cin >> max_n >> max_d;
- int n = rd(1, max_n)
- cout << n << endl;
- cout << rd(3, 10) << endl;
- for(int i = 0; i < n; ++i)
- cout << rd(1, max_d) << endl;
- cout << 1 << endl;
- cout << rd(1, n) << endl;
- cout << rd(1, n);
- return 0;
- }
Add Comment
Please, Sign In to add comment