Skip to content

Instantly share code, notes, and snippets.

@praveendhinwa
Last active December 23, 2015 07:29
Show Gist options
  • Select an option

  • Save praveendhinwa/6600786 to your computer and use it in GitHub Desktop.

Select an option

Save praveendhinwa/6600786 to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
using namespace std;
#define SZ(a) int((a).size())
#define PB push_back
#define ALL(c) (c).begin(),(c).end()
#define MP make_pair
#define FOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,a) FOR(i,0,(a)-1)
#define FORD(i,n,a) for(int (i)=(n);(i)>=a;(i)--)
#define FOREACH(it,c) for(typeof((c).begin()) it=(c).begin();it!=(c).end();++it)
#define FF first
#define SS second
#define FILL(a, v) memset(a, v, sizeof(a));
#define DREP(a) sort(ALL(a)); a.erase(unique(ALL(a)),a.end()) // will make the vector unique and sorted order
#define DEBUG(args...) {dbg,args; cerr<<endl;}
typedef long long LL;
typedef long double LD;
typedef vector <int> VI;
typedef vector <LL> VLL;
typedef vector <double> VD;
typedef vector<string> VS;
typedef vector <VI> VVI;
typedef pair <int,int> PII;
typedef pair <LL,LL> PLL;
typedef vector <PII > VPII;
struct debugger { template<typename T> debugger& operator , (const T& v) { cerr<<v<<" "; return *this; } } dbg;
template<class T> void print(vector < T > v, int sz=-1) {
if (sz == -1) sz = SZ(v);
cerr << "[";if (sz) cerr << v[0];FOR(i, 1, sz) cerr << ", " << v[i];cerr << "]" << endl;}
const double PI = acos(-1.0); //M_PI;
// main code starts now.
const int MAXN = (int) 1e5 + 10;
void read() {
}
void solve() {
}
int main() {
int T = 1;
//scanf ("%d", &T);
while (T--) {
read();
solve();
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment