Skip to content

Commit e4d65dd

Browse files
committed
add example of FenwickTree
1 parent 111a9ae commit e4d65dd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎FenwickTree/FenwickTree.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ public void add(int p, long x)
3030
```java
3131
public long sum(int l, int r)
3232
```
33-
$a_l + a_{l+1} + \dots + a_{r-1}$の値を返す. 計算量: $O(\log n)$
33+
$a_l + a_{l+1} + \dots + a_{r-1}$の値を返す. 計算量: $O(\log n)$
34+
35+
## 使用例
36+
[https://atcoder.jp/contests/practice2/submissions/16573339]

0 commit comments

Comments
 (0)