/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|   463k|  for (int i = 1; i <= n; ++i) a[i] = a[i - 1] + rd.uw();
                                        ^463k^463k
  ------------------
  |  Branch (11:19): [True: 100.00%, False: 0.00%]
  ------------------
   12|   463k|  for (int i = n; i >= 1; --i) a[i] -= a[i - (i & -i)];
                                        ^463k^463k
  ------------------
  |  Branch (12:19): [True: 100.00%, False: 0.00%]
  ------------------
   13|   412k|  while (q--) {
  ------------------
  |  Branch (13:10): [True: 100.00%, False: 0.00%]
  ------------------
   14|   412k|    let t = rd.u1();
   15|   412k|    if (t == 0) {
  ------------------
  |  Branch (15:9): [True: 49.97%, False: 50.03%]
  ------------------
   16|   206k|      int k = rd.uh() + 1;
   17|   206k|      int x = rd.uw();
   18|  2.20M|      for (; k <= n; k += k & -k) a[k] += x;
                                   ^1.99M       ^1.99M
  ------------------
  |  Branch (18:14): [True: 90.64%, False: 9.36%]
  ------------------
   19|   206k|    }
   20|   412k|    if (t == 1) {
  ------------------
  |  Branch (20:9): [True: 50.03%, False: 49.97%]
  ------------------
   21|   206k|      int l = rd.uh();
   22|   206k|      int r = rd.uh();
   23|   206k|      u64 ans = 0;
   24|  2.04M|      for (int k = l; k > 0; k -= k & -k) ans -= a[k];
                                           ^1.83M       ^1.83M
  ------------------
  |  Branch (24:23): [True: 89.89%, False: 10.11%]
  ------------------
   25|  2.20M|      for (int k = r; k > 0; k -= k & -k) ans += a[k];
                                           ^1.99M       ^1.99M
  ------------------
  |  Branch (25:23): [True: 90.63%, False: 9.37%]
  ------------------
   26|   206k|      wt.ud(ans);
   27|   206k|    }
   28|   412k|  }
   29|      1|  return 0;
   30|      1|}