Last active
August 19, 2016 06:49
-
-
Save hoangvanthien/40c1b33f557124493533b0780983b4a5 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 FOR(i, x, y) for(int i = (x); i<=(y); ++i) | |
| #define REP(i, r) for(int i = 0; i < (r); ++i) | |
| #define DFOR(i, x, y) for(int i = (x); i>=(y); --i) | |
| #define db(x) cout << #x << " = " << x << endl; | |
| #define forit(it, var) for(__typeof(var.begin()) it = var.begin(); it!=var.end(); ++it) | |
| #define forrit(it, var) for(__typeof(var.rbegin()) it = var.rbegin(); it!=var.rend(); ++it) | |
| #define pb push_back | |
| #define pf push_front | |
| #define mp make_pair | |
| #define F first | |
| #define S second | |
| #define II pair<int,int> | |
| #define LL long long | |
| #define lb lower_bound | |
| #define ub upper_bound | |
| #define LAST(x) (int)x.size()-1 | |
| #define ld long double | |
| #define maximize(x, y) x=max(x,(y)) | |
| #define minimize(x, y) x=min(x,(y)) | |
| #define nl puts("") | |
| const int N = 300002; | |
| const int oo = 1000000007; | |
| const double EPS = 1e-9; | |
| inline int cmp(double x, double y = 0, double tol = EPS) { | |
| return (x <= y + tol) ? (x + tol < y) ? -1 : 0 : 1; | |
| } | |
| int main() { | |
| #ifndef ONLINE_JUDGE | |
| freopen("input.inp", "r", stdin); | |
| freopen("output.out", "w", stdout); | |
| #endif // ONLINE_JUDGE | |
| #ifndef ONLINE_JUDGE | |
| cout << endl; | |
| cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n"; | |
| #endif | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment