Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "bits/stdc++.h"
- using namespace std;
- int rand(int l, int r){
- static mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
- uniform_int_distribution<int> uid(l, r); return uid(rng);
- }
- signed main() {
- srand(time(nullptr));
- ofstream out;
- out.open("input.txt");
- int t = rand(1, 4);
- out << t << '\n';
- while(t--) {
- int n;
- n = rand(1, 10);
- out << n << '\n';
- while(n--)
- out << rand(1, 25) << ' ';
- out << '\n';
- }
- }
Add Comment
Please, Sign In to add comment