Skip to content

Instantly share code, notes, and snippets.

@hUwUtao
Last active April 10, 2023 18:13
Show Gist options
  • Save hUwUtao/3bef2f90642f2208ce10b5491293edbd to your computer and use it in GitHub Desktop.
Save hUwUtao/3bef2f90642f2208ce10b5491293edbd to your computer and use it in GitHub Desktop.
hUwUtao's cpcpp template
#include <cmath>
#include <iostream>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define echo cout <<
#define en << endl
#define sp << ' ' <<
#define B(v) ((v) ? "YES" : "NO")
#define b(v) ((v) ? "Yes" : "No")
#define all(x) (x).begin(), (x).end()
#define srt(s) sort(s.begin(), s.end())
#define t \
ull _i, _c; \
cin >> _i; \
while (_c = _i--)
#define tee(x) \
x; \
cin >> x;
#define pll(x) ll tee(x)
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) (a * (b / __gcd(a, b)))
#define ii(i) i == floor(i)
#define _l(a, i, b, s) for (ull i = a; i b; i += s)
#define cl(a, i, b) _l(a, i, b, 1)
#define cf(i, n) cl(0, i, n)
#define f0(i, n) cl(0, i, < n)
#define f1(i, n) cl(1, i, <= n)
#define l(i, a, b) cl(a, i, < b)
#define f9(i, n) \
for (ull i = n - 1; i >= 0; i--) \
_l(n - 1, i, >= 0, -1)
#define fio ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
#define ent int main()
#define r0 return 0;
#define nah break;
ent {
fio;
// begin
r0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment