- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__template.cpp
More file actions
Latest commit
83 lines (78 loc) · 2.39 KB
/
Copy path__template.cpp
File metadata and controls
83 lines (78 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* in the name of ALLAH, most gracious, most merciful */
//{ ************[ Template ]************
usingnamespacestd;
//{ ************[ C headers ]************
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<climits>
#include<cfloat>
#include<cctype>
#include<cassert>
#include<ctime>
//}
//{ ************[ C++ headers ]************
#include<iostream>
#include<iomanip>
#include<sstream>
#include<algorithm>
#include<numeric>
#include<utility>
#include<string>
#include<stack>
#include<queue>
#include<deque>
#include<vector>
#include<set>
#include<map>
#include<list>
#include<complex>
//{ ************[ Test Report 1 ]************
// #include <tr1/regex>
// #include <tr1/unordered_set>
// #include <tr1/unordered_map>
//}
//}
//{ ************[ Loops ]************
#defineforab(i, a, b) for (__typeof (b) i = (a), i##_b = (b); i <= i##_b; ++i)
#definerep(i, n) forab (i, 0, (n) - 1)
#defineFor(i, n) forab (i, 1, n)
#definerofba(i, a, b) for (__typeof (b) i = (b), i##_a = (a); i >= i##_a; --i)
#defineper(i, n) rofba (i, 0, (n) - 1)
#definerof(i, n) rofba (i, 1, n)
#defineforeach(i, s) for (__typeof ((s).end ()) i = (s).begin (); i != (s).end (); ++i)
//}
//{ ************[ Floating points ]************
#defineEPSDBL_EPSILON
#defineabs(x) (((x) < 0) ? - (x) : (x))
#definezero(x) (abs (x) < EPS)
#defineequal(a,b) (zero ((a) - (b)))
//}
//{ ************[ Macros ]************
#definems(a, i) memset ((a), i, sizeof ((a)))
#defineclr(a) ms ((a), 0)
#definerst(a) ms ((a), -1)
#defineall(a) (a).begin (), (a).end ()
#definepb push_back
#definemp make_pair
template <classT, classU> inline T max (T &a, U &b) { return a > b ? a : b; }
template <classT, classU> inline T min (T &a, U &b) { return a < b ? a : b; }
template <classT, classU> inline T swap (T &a, U &b) { T temp = a; a = b; b = temp; }
staticstruct_ { ios_base :: Init Init; _ () { cin.sync_with_stdio (false); cin.tie (false); } } _;
//}
//{ ************[ Typedefs && Consts ]************
typedeflonglong int64;
typedefunsignedlonglong int64u;
constintMAX_N = int (1e6) + 7;
constintMOD = int (1e9) + 7;
constdoublePI = 2 * acos (0.0);
//}
//}
intmain () {
#ifdef Local
freopen ("input.txt", "r", stdin);
// freopen ("output.txt", "w", stdout);
#endif
return0;
}