Advertisement
Dennnhhhickk

Untitled

Oct 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <time.h>
  4.  
  5. #define mp make_pair
  6.  
  7. using namespace std;
  8.  
  9. typedef long long ll;
  10. typedef unsigned long long ull;
  11. typedef long double ld;
  12.  
  13. class Treap
  14. {  
  15. public:
  16.     ll x, y, s;
  17.     Treap *L, *R;
  18.  
  19.     Treap(ll x1)
  20.     {
  21.         x = x1;
  22.         y = rand();
  23.         L = 0;
  24.         R = L;
  25.         s = 1;
  26.     }
  27. };
  28.  
  29. int main()
  30. {
  31.     srand(time(NULL));
  32.     Treap *t = 0;
  33.     Treap(3);
  34.     cout << t->print() << endl;
  35.     return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement