# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
645632 | Pety | Abracadabra (CEOI22_abracadabra) | C++14 | 509 ms | 39612 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 ll long long
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const int M = 1e6+2;
int n, m, bit, p[200002], dr[200002];
pair<int, int>interval[200002];
int aib[200002];
int ans[M];
struct queries{
int p, t, i;
bool operator < (const queries &other) {
return t < other.t;
}
} q[M];
void update (int x, int val) {
for (int i = x; i <= n; i += (i & -i)) {
aib[i] += val;
}
}
int query (int x) {
int s = 0;
for (int i = x; i; i -= (i & -i))
# | 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... |