Advertisement
yungyao

defines

Aug 11th, 2022
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. //defines
  2. typedef long long LL;
  3. typedef pair<int,int> pii;
  4. typedef pair<LL,LL> pll;
  5. typedef vector<int> vi;
  6. typedef vector<LL> vl;
  7. typedef vector<vector<int>> vvi;
  8. typedef vector<vector<LL>> vvl;
  9. #define pb push_back
  10. #define F first
  11. #define S second
  12. #define mid (LB+RB)/2
  13. #define mkp make_pair
  14.  
  15. //iterators
  16. #define iter(x) x.begin(),x.end()
  17. #define aiter(a,n) a,a+n
  18.  
  19. //loops
  20. #define REP(n) for (int ___=n > 0 ? n : 0;___--;)
  21. #define REP0(i,n) for (int i=0,___=n;i<___;++i)
  22. #define REP1(i,n) for (int i=1,___=n;i<=___;++i)
  23. #define MEM(e,val) memset (e,val,sizeof(e))
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement