chang2394

Untitled

Nov 1st, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.40 KB | None | 0 0
  1. // uzumaki naruto
  2. #define TRACE
  3.  
  4. #include <bits/stdc++.h>
  5. #define  each(v,c)  for(typeof((c).begin()) v = (c).begin(); v != (c).end(); ++v)
  6. #define  sync(x)    ios_base::sync_with_stdio(x)
  7. #define  pb         push_back
  8. #define  mp         make_pair
  9. #define  sz(a)      ((int)(a.size()))
  10. #define  all(a)     (a).begin(), (a).end()
  11. #define  fi         first
  12. #define  se         second
  13.  
  14. using namespace std;
  15.  
  16. #ifdef  TRACE
  17. #define debug(a,n)    cerr << "["; for(int i = 0; i < n; ++i) cerr << a[i] << " ";cerr << "\b]\n";
  18. #define dbg(args...)  {debug1,args; cerr<<endl;}
  19. #define pause()       cin.get();cin.get();
  20.  
  21. #else
  22.  
  23. #define debug(a,n)
  24. #define dbg(args...)
  25. #define pause()
  26.  
  27. #endif
  28.  
  29. struct debugger {
  30.     template<typename T> debugger& operator , (const T& v) {
  31.         cerr<<v<<" "; return *this;
  32.     }
  33. } debug1;
  34.  
  35. template <typename T1, typename T2>
  36. inline ostream& operator << (ostream& os, const pair<T1, T2>& p) {
  37.     return os << "(" << p.first << ", " << p.second << ")";
  38. }
  39.  
  40. template<typename T>
  41. inline ostream &operator << (ostream & os,const vector<T>& v) {
  42.     bool first = true; os << "[";
  43.     for (typename vector<T>::const_iterator ii = v.begin(); ii != v.end(); ++ii) {
  44.         if(!first) os << ", ";
  45.         os << *ii; first = false;
  46.     }
  47.     return os << "]";
  48. }
  49.  
  50. typedef long long LL;
  51. typedef pair<int,int> pii;
  52. typedef vector<int> vi;
  53.  
  54. int main()
  55. {
  56.     return 0;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment