using namespace std; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include template string toStr(const T &x) { stringstream s; s << x; return s.str(); } template int toInt(const T &x) { stringstream s; s << x; int r; s >> r; return r; } #define For(i, a, b) for (int i=(a); i<(b); ++i) #define foreach(x, v) for (typeof (v).begin() x = (v).begin(); \ x != (v).end(); ++x) #define D(x) cout << #x " = " << (x) << endl const double EPS = 1e-9; int cmp(double x, double y = 0, double tol = EPS){ return( x <= y + tol) ? (x + tol < y) ? -1 : 0 : 1; } #define INPUT_FILE "problemname" int main(){ freopen(INPUT_FILE ".in", "r", stdin); // Read from file return 0; }