/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|   429k|  for (int i = 1; i <= n; ++i) a[i] = a[i - 1] + rd.uw();
                                        ^429k^429k
  ------------------
  |  Branch (11:19): [True: 100.00%, False: 0.00%]
  ------------------
   12|   429k|  for (int i = n; i >= 1; --i) a[i] -= a[i - (i & -i)];
                                        ^429k^429k
  ------------------
  |  Branch (12:19): [True: 100.00%, False: 0.00%]
  ------------------
   13|  25.8k|  while (q--) {
  ------------------
  |  Branch (13:10): [True: 100.00%, False: 0.00%]
  ------------------
   14|  25.8k|    let t = rd.u1();
   15|  25.8k|    if (t == 0) {
  ------------------
  |  Branch (15:9): [True: 49.72%, False: 50.28%]
  ------------------
   16|  12.8k|      int k = rd.uh() + 1;
   17|  12.8k|      int x = rd.uw();
   18|   137k|      for (; k <= n; k += k & -k) a[k] += x;
                                   ^124k        ^124k
  ------------------
  |  Branch (18:14): [True: 90.67%, False: 9.33%]
  ------------------
   19|  12.8k|    }
   20|  25.8k|    if (t == 1) {
  ------------------
  |  Branch (20:9): [True: 50.28%, False: 49.72%]
  ------------------
   21|  12.9k|      int l = rd.uh();
   22|  12.9k|      int r = rd.uh();
   23|  12.9k|      u64 ans = 0;
   24|   127k|      for (int k = l; k > 0; k -= k & -k) ans -= a[k];
                                           ^114k        ^114k
  ------------------
  |  Branch (24:23): [True: 89.84%, False: 10.16%]
  ------------------
   25|   137k|      for (int k = r; k > 0; k -= k & -k) ans += a[k];
                                           ^124k        ^124k
  ------------------
  |  Branch (25:23): [True: 90.52%, False: 9.48%]
  ------------------
   26|  12.9k|      wt.ud(ans);
   27|  12.9k|    }
   28|  25.8k|  }
   29|      1|  return 0;
   30|      1|}