Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "bits/stdc++.h"
- using namespace std;
- #define filein freopen ("input.txt", "r", stdin)
- #define fileout freopen ("output.txt", "w", stdout)
- int main () {
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- fileout;
- int T = 10;
- cout << T << '\n';
- for (int test_case = 1; test_case <= T; ++test_case) {
- int N = rand() % 500 + 1;
- vector<int> a(N + 1);
- cout << N << '\n';
- for (int i = 1; i <= N; ++i) {
- a[i] = rand() % 1000 + 1;
- }
- for (int i = 1; i <= N; ++i) {
- cout << a[i] << ' ';
- }
- cout << '\n';
- }
- }
- //~ T => (1 - 10)
- //~ N => (1 - 500)
- //~ Ai => (1 - 1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement