# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
445049 | lohacho | Matching (COCI20_matching) | C++14 | 29 ms | 44220 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 int long long
#define umi(x, y) (x = min(x, y))
#define uma(x, y) (x = max(x, y))
using namespace std;
const int NS = (int)1e5 + 4;
int q[NS * 2][3], f, r;
struct Seg{
int n;
vector<set<int>> tree;
Seg(int N):n(N * 4){
tree.resize(n);
}
void push(int x, int s, int e, int ps, int pe, int val){
if(pe < s || ps > e) return;
if(ps <= s && pe >= e){
tree[x].insert(val);
return;
}
int m = (s + e) >> 1;
push(x * 2, s, m, ps, pe, val), push(x * 2 + 1, m + 1, e, ps, pe, val);
}
void era(int x, int s, int e, int es, int ee, int val){
if(ee < s || es > e) return;
if(es <= s && ee >= e){
tree[x].erase(val);
return;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |