Last active
April 20, 2016 16:22
-
-
Save harshvladha/d3f2be4dd6cf42cee674 to your computer and use it in GitHub Desktop.
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; | |
#define FAST ios::sync_with_stdio(false) | |
#define mp make_pair | |
#define mt make_tuple | |
#define pb push_back | |
#define fi first | |
#define se second | |
#define sz(x) ((int) (x).size()) | |
#define a_size(x) sizeof(x)/sizeof(x[0]) | |
#define all(x) (x).begin(), (x).end() | |
#define sqr(x) ((x) * (x)) | |
#define sqrt(x) sqrt(abs(x)) | |
#define fill(x,y) memset(x,y,sizeof(x)) | |
#define rep(i, begin, end) for(i = (begin); i != (end) + 1 - 2 * ((begin) > (end)); i += 1 - 2 * ((begin) > (end))) | |
#define rep_stl(i, ob) for(auto i = ob.begin(); i != ob.end(); i++) | |
#define MAX 1000000 | |
#define MOD 1000000007 | |
#define endl "\n" | |
#define after_dec(a) cout<<fixed<<setprecision((a)) | |
//#define TIMER cout<<endl<<"Time Taken : "<<(double)(clock()-t1)/CLOCKS_PER_SEC<<" seconds."<<endl | |
//#define FILE freopen("test.in", "r", stdin); freopen("test.out", "w", stdout) | |
typedef long long ll; | |
typedef long double ld; | |
typedef double D; | |
typedef vector<int> vi; | |
typedef vector<long> vl; | |
typedef vector<ll> vll; | |
typedef pair<int, int> pii; | |
typedef vector<pii> vpii; | |
typedef vector<string> vs; | |
typedef vector<vi> matrix; | |
typedef vector<vi> vii; | |
clock_t t1 = clock(); | |
int main(){ | |
FAST; | |
#ifdef FILE | |
FILE; | |
#endif | |
#ifdef TIMER | |
TIMER; | |
#endif | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment