Last active
May 30, 2023 00:32
-
-
Save jiyometrik/fdfdc8b3a5659a3c4b3a6d526014ec66 to your computer and use it in GitHub Desktop.
a file of my macros used for competitive programming in c++.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
typedef long int li; | |
typedef long long int ll; | |
typedef long double ld; | |
typedef unsigned long long int ull; | |
#define pa pair | |
#define vc vector | |
#define dq deque | |
#define qu queue | |
#define pq priority_queue | |
#define rep(x, start, end) \ | |
for (auto x = (start) - ((start) > (end)); x != (end) - ((start) > (end)); \ | |
((start) < (end) ? x++ : x--)) | |
#define each(i, v) for (auto i : (v)) | |
#define io() \ | |
ios_base::sync_with_stdio(false); \ | |
cin.tie(NULL) | |
#define nl '\n' | |
#define fi first | |
#define se second | |
#define all(c) (c).begin(), (c).end() | |
#define sz(c) (ll)(c.size()) | |
#define pb push_back | |
#define pp pop_back | |
#define mp make_pair | |
mt19937 rng(chrono::system_clock::now().time_since_epoch().count()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment