Skip to content

Commit b7e30b5

Browse files
authored
remove
1 parent 00695a4 commit b7e30b5

File tree

1 file changed

+2
-2
lines changed
  • library/data_structures_[l,r)

1 file changed

+2
-2
lines changed

library/data_structures_[l,r)/bit.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ struct BIT {
99
void update(int i, ll d) {
1010
for (; i < sz(s); i |= i + 1) s[i] += d;
1111
}
12-
ll query(int r) { // [0, r)
12+
ll query(int r) {
1313
ll ret = 0;
1414
for (; r > 0; r &= r - 1) ret += s[r - 1];
1515
return ret;
1616
}
17-
ll query(int l, int r) { // [l, r)
17+
ll query(int l, int r) {
1818
return query(r) - query(l);
1919
}
2020
#include "bit_uncommon/walk.hpp"

0 commit comments

Comments
 (0)