Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "testlib.h"
- #include <iostream>
- using namespace std;
- int main(int argc, char* argv[])
- {
- registerGen(argc, argv, 1);
- int n=opt<int>("n");
- int v=(1<<29)-1;
- int manu=1e9;
- cout<<1<<endl<<n<<' '<<v<<endl;
- for (int i=0;i<n-1;++i) cout<<rnd.next(1,manu)<<' ';
- cout<<rnd.next(1,manu)<<endl;
- int p=opt<int>("p");
- bool sm=0;
- for (int i=0;i<n;++i)
- {
- if (i==p-1) sm=1;
- cout<<(1<<((i-sm)%29));
- if (i<n-1) cout<<' ';
- else cout<<endl;
- }
- int q=opt<int>("q");
- cout<<q<<endl;
- for (int i=0;i<q;++i)
- {
- if (i<q-1)
- {
- if (i%2==0) cout<<"1 "<<p<<' '<<(1<<((p-1)%29))<<endl;
- else cout<<"1 "<<p<<' '<<(1<<((p-2)%29))<<endl;
- }
- else cout<<"2 1 "<<n<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement