# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
156191 | theboatman | Money (IZhO17_money) | C++17 | 1572 ms | 38728 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define y1 theboatman
#define make_struct(args...) {args}
using namespace std;
const int inf = 1e9 + 10;
const int N = 1e6 + 10;
struct tree {
vector <int> t;
int tl, tr, v;
void init(int n) {
tl = 0;
tr = n - 1;
v = 1;
t.resize(n * 4);
}
void inc(int v, int tl, int tr, int pos) {
if (tl == tr) {
t[v] |= 1;
}
else {
int tm = tl + tr >> 1;
if (pos <= tm) {
inc(v << 1, tl, tm, pos);
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |