Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstdlib>
- #include<algorithm>
- #include<vector>
- #include<cstring>
- #include<cmath>
- using namespace std;
- #define MAX 100000
- #define MOD 100007
- int main()
- {
- int t=100,n,a,b;
- cout<<t<<endl;
- while(t--)
- {
- //generate n a b
- n=5+rand()%1000;
- a=2+rand()%200;
- b=5+rand()%a;
- cout<<n<<" "<<b<<" "<<a<<endl;
- for(int i=0;i<n;i++)
- {
- cout<<(5+rand()%100000)<<" ";
- }
- cout<<endl;
- }
- }
Add Comment
Please, Sign In to add comment