diff options
author | Anthony Wang | 2020-09-08 15:32:49 -0500 |
---|---|---|
committer | Anthony Wang | 2020-09-08 15:32:49 -0500 |
commit | 105787a83793986c10c8c6ac622eae41f7dc3f64 (patch) | |
tree | dff34fbc7f34398b07b2a6518c8d99f06c7110c3 | |
parent | 7836b0c0ba58e3b68dd937e042e7c62e687455f7 (diff) |
Modified templates
-rw-r--r-- | Template/template.cpp | 3 | ||||
-rw-r--r-- | Template/usaco.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Template/template.cpp b/Template/template.cpp index 80b2748..48856fd 100644 --- a/Template/template.cpp +++ b/Template/template.cpp @@ -21,7 +21,8 @@ using vi = vector<int>; using vl = vector<ll>; using vd = vector<ld>; using vii = vector<ii>; using vpl = vector<pl>; using vpd = vector<pd>; template<typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; template<typename T> using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>; // Use with caution -constexpr int INF = 1e9; constexpr ll LINF = 1e18; constexpr ll MOD = 1e9+7; constexpr ld PI = 4*atan((ld)1); +constexpr ll MX = 1e5+5, ll INF = 1e9, LINF = 1e18, ll MOD = 1e9+7; +constexpr ld PI = 4*atan((ld)1); int main() { if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout); diff --git a/Template/usaco.cpp b/Template/usaco.cpp index f730b4c..6f46a75 100644 --- a/Template/usaco.cpp +++ b/Template/usaco.cpp @@ -21,7 +21,8 @@ using vi = vector<int>; using vl = vector<ll>; using vd = vector<ld>; using vii = vector<ii>; using vpl = vector<pl>; using vpd = vector<pd>; template<typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; template<typename T> using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>; // Use with caution -constexpr int INF = 1e9; constexpr ll LINF = 1e18; constexpr ll MOD = 1e9+7; constexpr ld PI = 4*atan((ld)1); +constexpr ll MX = 1e5+5, ll INF = 1e9, LINF = 1e18, ll MOD = 1e9+7; +constexpr ld PI = 4*atan((ld)1); void io(const str & s) { if (fopen((s+".in").c_str(), "r")) freopen((s+".in").c_str(), "r", stdin), freopen((s+".out").c_str(), "w", stdout); ios_base::sync_with_stdio(0), cin.tie(0); |