diff options
author | Anthony Wang | 2020-08-26 09:10:32 -0500 |
---|---|---|
committer | Anthony Wang | 2020-08-26 09:10:32 -0500 |
commit | a44e1c8029f417d87d89d45d859a22688202c40e (patch) | |
tree | 7d8d06f1c6369293c0a8bba801ba6ae52ad65b8c /Data Structures | |
parent | 72e2f3c9510a3f8bdcaa10e4264852031b502484 (diff) |
Cleanup
Diffstat (limited to 'Data Structures')
-rw-r--r-- | Data Structures/segment_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Data Structures/segment_tree.cpp b/Data Structures/segment_tree.cpp index dd92117..a2b1d40 100644 --- a/Data Structures/segment_tree.cpp +++ b/Data Structures/segment_tree.cpp @@ -1,4 +1,4 @@ -template<typename T> struct segtree { +template<typename T> struct seg_tree { T seg[4*MN], tmp[4*MN]; inline T pull(const T & a, const T & b) { return a+b; } inline void push(int l, int r, int n) { @@ -46,4 +46,4 @@ template<typename T> struct segtree { int m = (l+r)>>1; return pull(query(a, b, l, m, n<<1), query(a, b, m+1, r, n<<1|1)); } -} +}; |