# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
981579 | josanneo22 | Examination (JOI19_examination) | C++17 | 1446 ms | 12124 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.
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
const int nax = 100005;
const int BLOCK = 317;
struct query {
int a, b, c, id;
bool operator < (const query& o) const {
int F = a / BLOCK;
int S = o.a / BLOCK;
if (F == S) return b < o.b;
return F < S;
}
};
#define low(x) x & -x
struct fenw {
vector<i64> T;
int _N;
fenw(int N) {
_N = N;
T.assign(_N + 500, 0);
}
void update(int p, int x) {
int P = p;
# | 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... |