We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5744cc2 commit 875d2beCopy full SHA for 875d2be
bit.cpp
@@ -17,4 +17,7 @@ struct BIT {
17
}
18
return x;
19
20
+ T sum(int l, int r) {
21
+ return sum(r-1) - sum(l-1);
22
+ }
23
};
0 commit comments