KarleFKremen

STL template

Apr 17th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.07 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. // settings
  4.     #define FILE "good"
  5.     #define USE_FREOPEN 1
  6.     #define USE_LONG 1
  7.     #define USE_IOSOPT 0
  8.  
  9. // system
  10.     #if USE_LONG
  11.         typedef long long ll;
  12.         typedef unsigned long long ull;
  13.     #else
  14.         typedef int ll;
  15.         typedef unsigned int ull;
  16.     #endif
  17.     #define pb push_back
  18.     #define mp make_pair
  19.     #define p(a, b) pair < a, b >
  20.     #define sq(x) (x * x)
  21.     #define fi first
  22.     #define se second
  23.     #define rm erase
  24.     #define ins insert
  25.     #define rev(a) reverse(a.begin(), a.end())
  26.     #define ord(a) sort(a.begin(), a.end())
  27.     #define rs resize
  28.     #define sz size
  29.     #define stlprint(a) \
  30.         for(auto __LEVEL_1_STL_ITERATOR = a.begin(); __LEVEL_1_STL_ITERATOR != a.end(); __LEVEL_1_STL_ITERATOR++) \
  31.         { \
  32.             printf("%lld ", *__LEVEL_1_STL_ITERATOR); \
  33.         }
  34.     #define die(a) \
  35.         { \
  36.             cout << a << endl; \
  37.             exit(0); \
  38.         }
  39.  
  40. using namespace std;
  41.  
  42. int main()
  43. {
  44.     // ios{
  45.         #if USE_IOSOPT
  46.             ios_base::sync_with_stdio(false);
  47.             cin.tie(0);
  48.         #endif
  49.         #if USE_FREOPEN
  50.             freopen(FILE".in", "r", stdin);
  51.             freopen(FILE".out", "w", stdout);
  52.         #endif
  53. }
Advertisement
Add Comment
Please, Sign In to add comment