sacgajcvs

gen 57

Jul 17th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #include "testlib.h"
  2. #include "bits/stdc++.h"
  3. #define ll long long
  4. #define rep(i,a,b) for(ll int i=a;i<b;i++)
  5. #define pii pair<ll,ll>
  6. #define sz(x) (ll)(x.size())
  7. #define pb push_back
  8. #define all(a) ((a.begin()),(a.end()))
  9. using namespace std;
  10.  
  11. void writeTest(int test){
  12. startTest(test);
  13. /***********************************/
  14. unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
  15. mt19937_64 generator (seed);
  16. /***********************************/
  17. ll N=1000;
  18. ll Q=500000;
  19. ll V=1000000001;
  20. /*****************/
  21.  
  22. // ll n=generator()%(N-1)+2;
  23. ll n=N;
  24. ll x=generator()%n+1;
  25. cout<<n<<" "<<5<<endl;
  26.  
  27. rep(i,2,n+1)
  28. cout<<i<<" "<<i-1<<endl;
  29. // queue<ll>q;
  30. // ll cnt=n-1;
  31. // q.push(n);
  32. // while(cnt>0)
  33. // {
  34. // ll vl=q.front();
  35. // q.pop();
  36. // ll ch=generator()%3+1;
  37. // if(ch>=cnt)
  38. // {
  39. // ch=cnt;
  40. // }
  41. // rep(i,0,ch)
  42. // {
  43. // cout<<vl<<" "<<cnt<<endl;
  44. // q.push(cnt);
  45. // cnt--;
  46. // }
  47. // }
  48. }
  49. int main(int argc, char* argv[])
  50. {
  51. registerGen(argc, argv, 1);
  52. for(int i=57;i<=57;i++){
  53. writeTest(i);
  54. }
  55. return 0;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment