長さ
- 要素の1点変更
- 区間の要素の総和
を
public FenwickTree(int n)長さ
public void add(int p, long x)配列の第$p$要素に$x$を加える. すなわち, a[p] += x のこと.
計算量:
public long sum(int l, int r)[[https://atcoder.jp/contests/practice2/submissions/16573339]]
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
長さ
を
public FenwickTree(int n)長さ
public void add(int p, long x)配列の第$p$要素に$x$を加える. すなわち, a[p] += x のこと.
計算量:
public long sum(int l, int r)[[https://atcoder.jp/contests/practice2/submissions/16573339]]