# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
112267 | JustInCase | Examination (JOI19_examination) | C++17 | 2092 ms | 11904 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>
const int32_t MAX_N = 1e5;
const int32_t MAX_Q = 1e5;
const int32_t BUCKET_SIZE = 316;
struct Query {
int32_t a, b, c, ind;
bool operator< (const Query &o) const {
int32_t bucket = a / BUCKET_SIZE;
int32_t oBucket = o.a / BUCKET_SIZE;
if(bucket == oBucket) {
return b < o.b;
}
return bucket < oBucket;
}
};
struct IndexTree {
int32_t treeSize;
int32_t data[2 * MAX_N + 5];
void init(int32_t _treeSize) {
treeSize = _treeSize;
}
void update(int32_t ind, int32_t val) {
# | 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... |