/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|      6|  for (int i = 1; i <= n; ++i) a[i] = a[i - 1] + rd.uw();
                                        ^5   ^5
  ------------------
  |  Branch (11:19): [True: 83.33%, False: 16.67%]
  ------------------
   12|      6|  for (int i = n; i >= 1; --i) a[i] -= a[i - (i & -i)];
                                        ^5   ^5
  ------------------
  |  Branch (12:19): [True: 83.33%, False: 16.67%]
  ------------------
   13|      6|  while (q--) {
  ------------------
  |  Branch (13:10): [True: 83.33%, False: 16.67%]
  ------------------
   14|      5|    let t = rd.u1();
   15|      5|    if (t == 0) {
  ------------------
  |  Branch (15:9): [True: 20.00%, False: 80.00%]
  ------------------
   16|      1|      int k = rd.uh() + 1;
   17|      1|      int x = rd.uw();
   18|      2|      for (; k <= n; k += k & -k) a[k] += x;
                                   ^1           ^1
  ------------------
  |  Branch (18:14): [True: 50.00%, False: 50.00%]
  ------------------
   19|      1|    }
   20|      5|    if (t == 1) {
  ------------------
  |  Branch (20:9): [True: 80.00%, False: 20.00%]
  ------------------
   21|      4|      int l = rd.uh();
   22|      4|      int r = rd.uh();
   23|      4|      u64 ans = 0;
   24|      5|      for (int k = l; k > 0; k -= k & -k) ans -= a[k];
                                           ^1           ^1
  ------------------
  |  Branch (24:23): [True: 20.00%, False: 80.00%]
  ------------------
   25|     11|      for (int k = r; k > 0; k -= k & -k) ans += a[k];
                                           ^7           ^7
  ------------------
  |  Branch (25:23): [True: 63.64%, False: 36.36%]
  ------------------
   26|      4|      wt.ud(ans);
   27|      4|    }
   28|      5|  }
   29|      1|  return 0;
   30|      1|}