Skip to content

Commit

Permalink
updates macro
Browse files Browse the repository at this point in the history
  • Loading branch information
iagorrr committed Aug 4, 2024
1 parent 79dc0e5 commit 3fe2416
Showing 1 changed file with 26 additions and 39 deletions.
65 changes: 26 additions & 39 deletions settings-and-macros/macro.cpp
Original file line number Diff line number Diff line change
@@ -1,59 +1,46 @@
#include <bits/stdc++.h>
using namespace std;

#ifdef LOCAL
#include "debug.cpp"
#else
#define dbg(...)
#endif

#define endl '\n'

#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(0);
// #define int long long
#define len(__x) (int)__x.size()
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using vll = vector<ll>;
using pll = pair<ll, ll>;
using vll2d = vector<vll>;
using vi = vector<int>;
using vi2d = vector<vi>;
using pii = pair<int, int>;
using vii = vector<pii>;
using vc = vector<char>;
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define pb push_back
#define eb emplace_back
#define ff first
#define ss second
#define rep(i, begin, end) \
for (__typeof(begin) i = (begin) - ((begin) > (end)); \
i != (end) - ((begin) > (end)); \
i += 1 - 2 * ((begin) > (end)))

int lg2(ll x) {
return __builtin_clzll(1) - __builtin_clzll(x);
}

// vector<string> dir({"LU", "U", "RU", "R", "RD", "D",
// "LD", "L"}); int dx[] = {-1, -1, -1, 0, 1, 1, 1, 0}; int
// dy[] = {-1, 0, 1, 1, 1, 0, -1, -1};
vector<string> dir({"U", "R", "D", "L"});
int dx[] = {-1, 0, 1, 0};
int dy[] = {0, 1, 0, -1};

const ll OO = 1e18;
const int oo = 1e9;

int T(1);
#define int long long

#define All(a) a.begin(), a.end()
#define Rall(a) a.rbegin(), a.rend()
#define For(i, a, b) for (common_type_t<decltype(a), decltype(b)> i = a; i != b; (a < b) ? ++i : --i)
#define Sz(x) (int)x.size()
#define Pb push_back
#define Eb emplace_back

using Ll = long long;
using Ull = unsigned long long;
using Ld = long double;
using Vll = vector<ll>;
using Pll = pair<ll, ll>;
using Vll2d = vector<vll>;
using Vi = vector<int>;
using Vi2d = vector<vi>;
using Pii = pair<int, int>;
using Vii = vector<pii>;
using Vc = vector<char>;

int T = 1;

auto run() {

}

int32_t main(void) {
int32_t main() {
#ifndef LOCAL
fastio;
#endif
Expand Down

0 comments on commit 3fe2416

Please sign in to comment.