Advertisement
sleepy_coder

Go_to_Hell

Oct 29th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.71 KB | None | 0 0
  1. //actually this is also a contest template for c++ which I use with sublime text
  2. #include <bits/stdc++.h>
  3. #include <ext/pb_ds/tree_policy.hpp>
  4. #include <ext/pb_ds/assoc_container.hpp>
  5. #include <ext/pb_ds/detail/standard_policies.hpp>
  6. using namespace   std;
  7. using namespace __gnu_cxx;
  8. using namespace __gnu_pbds;
  9.  
  10. typedef long long ll;
  11. typedef vector<ll> vl;
  12. typedef vector<int> vi;
  13. typedef pair<ll, ll> pll;
  14. typedef pair<int, int> pii;
  15.  
  16. #define     sz                 size()
  17. #define     pb                 push_back
  18. #define     inf                (1<<30)
  19. #define     mod                (1000000007)
  20. #define     pi                 (acos(-1.0))
  21. #define     rep(i, n)          for(__typeof(n) i=0; i<(n); i++)
  22. #define     foab(i, a, b)      for(__typeof(b) i=(a); i<=(b); i++)
  23. #define     foba(i, a, b)      for(__typeof(b) i=(b); i>=(a); i--)
  24. #define     foch(it, l)        for(__typeof((l).begin()) it = (l).begin();  it != (l).end(); ++it)
  25. #define     what_is_x(x)       cout << (#x) << " is " << (x) << endl;
  26.  
  27. template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
  28. template<typename T> ostream& operator<<(ostream& os, const vector<T> &t) { ll n = t.size(); rep(i, n) os<<t[i]<<" "; return os; }
  29. template<typename T,typename TT> ostream& operator<<(ostream &os, const pair<T,TT> &t) { return os<<"("<<t.first<<","<<t.second<<")"; }
  30. /**__________________________________________________________________________________________________________________________________*/
  31.  
  32.  
  33.  
  34.  
  35.  
  36. int main(){
  37. #ifdef DEBUG
  38.     freopen("input.txt", "r", stdin);
  39.     freopen("output.txt", "w", stdout);
  40. #endif
  41.     ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  42.  
  43.    
  44.  
  45.    
  46.    
  47.     return 0;
  48.    
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement