Created
May 22, 2015 04:39
-
-
Save mikkkee/510e05c1bc83d86b2818 to your computer and use it in GitHub Desktop.
Abbreviations used for C++
This file contains 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> | |
#define SZ(X) ((int)(X).size()) | |
#define ALL(X) (X).begin(), (X).end() | |
#define REP(I, N) for (int I = 0; I < (N); ++I) | |
#define REPP(I, A, B) for (int I = (A); I < (B); ++I) | |
#define RI(X) scanf("%d", &(X)) | |
#define RII(X, Y) scanf("%d%d", &(X), &(Y)) | |
#define RIII(X, Y, Z) scanf("%d%d%d", &(X), &(Y), &(Z)) | |
#define DRI(X) int (X); scanf("%d", &X) | |
#define DRII(X, Y) int X, Y; scanf("%d%d", &X, &Y) | |
#define DRIII(X, Y, Z) int X, Y, Z; scanf("%d%d%d", &X, &Y, &Z) | |
#define RS(X) scanf("%s", (X)) | |
#define CASET int ___T, case_n = 1; scanf("%d ", &___T); while (___T-- > 0) | |
#define MP make_pair | |
#define PB push_back | |
#define MS0(X) memset((X), 0, sizeof((X))) | |
#define MS1(X) memset((X), -1, sizeof((X))) | |
#define LEN(X) strlen(X) | |
#define PII pair<int,int> | |
#define VPII vector<pair<int,int> > | |
#define PLL pair<long long,long long> | |
#define F first | |
#define S second | |
typedef long long LL; | |
using namespace std; | |
const int MOD = 1e9+7; | |
const int SIZE = 3*1e5+10; | |
#define LOCALTEST 0 // change this to 1 to perform localtest on "in.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment