/tmp/solutions/build/point_add_range_sum-main.cpp:
    1|       |#include <common.h>
    2|       |prelude;
    3|       |
    4|       |u64 a[500001];
    5|       |
    6|      1|int main() {
    7|      1|  rd rd;
    8|      1|  wt wt;
    9|      1|  int n = rd.uh();
   10|      1|  int q = rd.uh();
   11|     11|  for (int i = 1; i <= n; ++i) a[i] = a[i - 1] + rd.uw();
                                        ^10  ^10
  ------------------
  |  Branch (11:19): [True: 90.91%, False: 9.09%]
  ------------------
   12|     11|  for (int i = n; i >= 1; --i) a[i] -= a[i - (i & -i)];
                                        ^10  ^10
  ------------------
  |  Branch (12:19): [True: 90.91%, False: 9.09%]
  ------------------
   13|  1.00k|  while (q--) {
  ------------------
  |  Branch (13:10): [True: 99.90%, False: 0.10%]
  ------------------
   14|  1.00k|    let t = rd.u1();
   15|  1.00k|    if (t == 0) {
  ------------------
  |  Branch (15:9): [True: 48.40%, False: 51.60%]
  ------------------
   16|    484|      int k = rd.uh() + 1;
   17|    484|      int x = rd.uw();
   18|  1.59k|      for (; k <= n; k += k & -k) a[k] += x;
                                   ^1.11k       ^1.11k
  ------------------
  |  Branch (18:14): [True: 69.66%, False: 30.34%]
  ------------------
   19|    484|    }
   20|  1.00k|    if (t == 1) {
  ------------------
  |  Branch (20:9): [True: 51.60%, False: 48.40%]
  ------------------
   21|    516|      int l = rd.uh();
   22|    516|      int r = rd.uh();
   23|    516|      u64 ans = 0;
   24|  1.15k|      for (int k = l; k > 0; k -= k & -k) ans -= a[k];
                                           ^642         ^642
  ------------------
  |  Branch (24:23): [True: 55.44%, False: 44.56%]
  ------------------
   25|  1.47k|      for (int k = r; k > 0; k -= k & -k) ans += a[k];
                                           ^957         ^957
  ------------------
  |  Branch (25:23): [True: 64.97%, False: 35.03%]
  ------------------
   26|    516|      wt.ud(ans);
   27|    516|    }
   28|  1.00k|  }
   29|      1|  return 0;
   30|      1|}