Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- typedef long long int ll;
- typedef pair <ll, ll> pll;
- const int Max = 1e6 + 10;
- const int Mod = 1e9 + 7;
- const ll Inf = 1LL << 62;
- ll ar[Max];
- ll tot[Max];
- int main() {
- for(int tc=1; tc<=10; tc++){
- string str="input";
- if(tc<10)
- str+="0", str+=(tc + '0');
- else
- str+="10";
- str+=".txt";
- freopen(str.c_str(), "w", stdout);
- printf("10\n");
- for(int i=1; i<=10; i++){
- int n=3e5, p, q;
- p = rand() % 1000000 + 1;
- q = rand() % 1000000 + 1;
- printf("%d %d %d\n", n, p, q);
- for(int j=1; j<=n; j++){
- int x=rand()%1000000+1;
- printf("%d", x);
- if(j==n)printf("\n");
- else printf(" ");
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement