Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (35 sloc) 1.025 kb
0241b84 @emiraga Initial commit
authored
1 #include<cstdio>
2 #include<sstream>
3 #include<cstdlib>
4 #include<cctype>
5 #include<cmath>
6 #include<algorithm>
7 #include<set>
8 #include<queue>
9 #include<stack>
10 #include<list>
11 #include<iostream>
12 #include<string>
13 #include<vector>
14 #include<cstring>
15 #include<map>
16 #include<cassert>
17 #include<climits>
18 using namespace std;
19
1ede154 @smilitude fixed sz and updated loop macros
smilitude authored
20 #define REP(i,n) for(int i=0, _e(n); i<_e; i++)
21 #define FOR(i,a,b) for(int i(a), _e(b); i<=_e; i++)
22 #define FORD(i,a,b) for(int i(a), _e(b); i>=_e; i--)
0241b84 @emiraga Initial commit
authored
23 #define FORIT(i, m) for (__typeof((m).begin()) i=(m).begin(); i!=(m).end(); ++i)
24 #define SET(t,v) memset((t), (v), sizeof(t))
25 #define ALL(x) x.begin(), x.end()
26 #define UNIQUE(c) (c).resize( unique( ALL(c) ) - (c).begin() )
27
1ede154 @smilitude fixed sz and updated loop macros
smilitude authored
28 #define sz size()
0241b84 @emiraga Initial commit
authored
29 #define pb push_back
30 #define VI vector<int>
31 #define VS vector<string>
32
33 typedef long long LL;
34 typedef long double LD;
35 typedef pair<int,int> pii;
36
4c10157 @emiraga vimrc and bashrc to notebook
authored
37 #define D(x) if(1) cout << __LINE__ <<" "<< #x " = " << (x) << endl;
38 #define D2(x,y) if(1) cout << __LINE__ <<" "<< #x " = " << (x) \
39 <<", " << #y " = " << (y) << endl;
Something went wrong with that request. Please try again.